Skip to content

Commit 17911e6

Browse files
linesightclaude
andcommitted
cleanup: remove dead legacy build.py fallback from cefpython_public_api.h
The #else branch with hardcoded version-specific include paths was only reachable by the old root-level build.py which no longer exists; all builds now go through CMake which always defines CEFPYTHON_API_H_FILE. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 31470b6 commit 17911e6

1 file changed

Lines changed: 3 additions & 20 deletions

File tree

src/common/cefpython_public_api.h

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -29,26 +29,9 @@
2929
#define DL_EXPORT(RTYPE) RTYPE
3030
#endif
3131

32-
// CMake builds define CEFPYTHON_API_H_FILE to "cefpython_api_fixed.h", a
33-
// generated stable-name wrapper in the pyx_stage/ build directory that is
34-
// resolved via the target's include path.
35-
// Legacy build.py builds fall back to the hardcoded version-specific paths.
36-
#ifdef CEFPYTHON_API_H_FILE
32+
// CMake sets CEFPYTHON_API_H_FILE to "cefpython_api_fixed.h", a generated
33+
// stable-name wrapper in the pyx_stage/ build directory resolved via the
34+
// target's include path.
3735
#include CEFPYTHON_API_H_FILE
38-
#else
39-
#if PY_MAJOR_VERSION == 3
40-
#if PY_MINOR_VERSION == 10
41-
#include "../../build/build_cefpython/cefpython_py310_fixed.h"
42-
#elif PY_MINOR_VERSION == 11
43-
#include "../../build/build_cefpython/cefpython_py311_fixed.h"
44-
#elif PY_MINOR_VERSION == 12
45-
#include "../../build/build_cefpython/cefpython_py312_fixed.h"
46-
#elif PY_MINOR_VERSION == 13
47-
#include "../../build/build_cefpython/cefpython_py313_fixed.h"
48-
#elif PY_MINOR_VERSION == 14
49-
#include "../../build/build_cefpython/cefpython_py314_fixed.h"
50-
#endif // PY_MINOR_VERSION
51-
#endif // PY_MAJOR_VERSION
52-
#endif // CEFPYTHON_API_H_FILE
5336

5437
#endif // CEFPYTHON_PUBLIC_API_H

0 commit comments

Comments
 (0)