-
Notifications
You must be signed in to change notification settings - Fork 44
/
config.w32
21 lines (17 loc) · 1.01 KB
/
config.w32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
// vim:ft=javascript
ARG_ENABLE("phpy", "enable phpy extension", "yes");
if (PHP_PHPY != "no") {
PYTHONHOME = WshShell.Environment("Process").Item("PYTHONHOME")
if (PYTHONHOME) {
var ext_dir = configure_module_dirname
ADD_SOURCES(ext_dir + "/src/bridge", "core.cc", "phpy")
ADD_SOURCES(ext_dir + "/src/php", "object.cc type.cc error.cc iter.cc dict.cc core.cc fn.cc str.cc sequence.cc list.cc set.cc tuple.cc module.cc", "phpy")
ADD_SOURCES(ext_dir + "/src/python", "class.cc module.cc object.cc reference.cc resource.cc callable.cc string.cc array.cc", "phpy")
EXTENSION("phpy", "phpy.cc", null, '/DZEND_ENABLE_STATIC_TSRMLS_CACHE=1 -I ' + ext_dir + '/include -I ' + ext_dir + ' /I ' + PYTHONHOME + '/include')
ADD_FLAG("CFLAGS", "/D PHP_PHPY_EXPORTS ")
ADD_FLAG("LDFLAGS_PHPY", '/libpath:' + PYTHONHOME + '/libs')
ADD_FLAG("CXXFLAGS", "-Wall -Wno-unused-function -Wno-deprecated -Wno-deprecated-declarations -z now")
} else {
WARNING("python not found; the python libraries and headers not found");
}
}