File tree Expand file tree Collapse file tree 3 files changed +10
-9
lines changed
libgrass_interface_generator Expand file tree Collapse file tree 3 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 4
4
# This program is free software under the GPL (>=v2)
5
5
# Read the file COPYING that comes with GRASS for details.
6
6
7
- set (ENV{GISRC}
8
- "${BIN_DIR} /demolocation/.grassrc${GRASS_VERSION_MAJOR}${GRASS_VERSION_MINOR} "
9
- )
7
+ set (ENV{GISRC} "${BIN_DIR} /etc/config/rc" )
10
8
set (ENV{GISBASE} "${BIN_DIR} " )
11
9
set (ENV{PATH} "${BIN_DIR} /bin:${BIN_DIR} /scripts:$ENV{PATH} " )
12
10
set (ENV{PYTHONPATH}
@@ -19,12 +17,15 @@ set(ENV{LC_ALL} C)
19
17
set (LIBRARIES )
20
18
foreach (LIB ${LIBS} )
21
19
if (WIN32 )
22
- list (APPEND LIBRARIES "--library=${BIN_DIR} /bin/${LIB} .dll" )
20
+ list (APPEND LIBRARIES
21
+ "--library=${BIN_DIR} /lib/${LIB} .${GRASS_VERSION_NUMBER} .dll" )
23
22
elseif (APPLE )
24
- list (APPEND LIBRARIES "--library=${BIN_DIR} /lib/lib${LIB} .so" )
23
+ list (APPEND LIBRARIES
24
+ "--library=${BIN_DIR} /lib/lib${LIB} .${GRASS_VERSION_NUMBER} .so" )
25
25
else ()
26
26
#This can be linux or unix
27
- list (APPEND LIBRARIES "--library=${BIN_DIR} /lib/lib${LIB} .so" )
27
+ list (APPEND LIBRARIES
28
+ "--library=${BIN_DIR} /lib/lib${LIB} .${GRASS_VERSION_NUMBER} .so" )
28
29
endif ()
29
30
endforeach ()
30
31
Original file line number Diff line number Diff line change @@ -49,8 +49,7 @@ add_custom_target(
49
49
python_pygrass_modules_interface
50
50
python_pygrass_modules_grid )
51
51
52
- #TODO: MODULES DISABLED
53
- # add_subdirectory(ctypes)
52
+ add_subdirectory (ctypes )
54
53
55
54
set_target_properties (LIB_PYTHON PROPERTIES FOLDER lib )
56
55
Original file line number Diff line number Diff line change @@ -88,7 +88,8 @@ foreach(module ${MODULES})
88
88
${CMAKE_COMMAND} -DCTYPESGEN_PY=${CMAKE_CURRENT_SOURCE_DIR}/ctypesgen.py
89
89
-DPYTHON_EXECUTABLE=${PYTHON_EXECUTABLE} -DCOMPILER=${CMAKE_C_COMPILER}
90
90
-DBIN_DIR=${GISBASE} -DHDRS=${${module}_HDRS} -DLIBS=${${module}_LIBS}
91
- -DOUT_FILE=${output_file} -P ${CMAKE_SOURCE_DIR} /cmake/ctypesgen.cmake
91
+ -DOUT_FILE=${output_file} -DGRASS_VERSION_NUMBER=${GRASS_VERSION_NUMBER}
92
+ -P ${CMAKE_SOURCE_DIR} /cmake/ctypesgen.cmake
92
93
COMMENT "Generating ${output_file} "
93
94
VERBATIM )
94
95
You can’t perform that action at this time.
0 commit comments