equal
deleted
inserted
replaced
1 set(pas2c_sources |
1 set(pas2c_sources |
2 Main.hs |
2 Main.hs |
3 PascalBasics.hs |
3 PascalBasics.hs |
4 PascalParser.hs |
4 PascalParser.hs |
5 PascalPreprocessor.hs |
5 PascalPreprocessor.hs |
6 PascalUnitSyntaxTree.hs |
6 PascalUnitSyntaxTree.hs |
7 pas2c.hs |
7 pas2c.hs |
8 ) |
8 ) |
9 |
9 |
10 set(pas2c_main ${hedgewars_SOURCE_DIR}/tools/pas2c/Main.hs) |
10 set(pas2c_main ${hedgewars_SOURCE_DIR}/tools/pas2c/Main.hs) |
11 |
11 |
12 set(ghc_flags |
12 set(ghc_flags |
13 --make ${pas2c_main} |
13 --make ${pas2c_main} |
14 -i${hedgewars_SOURCE_DIR}/tools/pas2c/ |
14 -i${hedgewars_SOURCE_DIR}/tools/pas2c/ |
15 -o ${EXECUTABLE_OUTPUT_PATH}/pas2c${CMAKE_EXECUTABLE_SUFFIX} |
15 -o ${EXECUTABLE_OUTPUT_PATH}/pas2c${CMAKE_EXECUTABLE_SUFFIX} |
16 -odir ${CMAKE_CURRENT_BINARY_DIR} |
16 -odir ${CMAKE_CURRENT_BINARY_DIR} |
17 -hidir ${CMAKE_CURRENT_BINARY_DIR} |
17 -hidir ${CMAKE_CURRENT_BINARY_DIR} |
18 ${haskell_flags}) |
18 ${haskell_flags} |
|
19 ) |
19 |
20 |
20 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/pas2c${CMAKE_EXECUTABLE_SUFFIX}" |
21 add_custom_command(OUTPUT "${EXECUTABLE_OUTPUT_PATH}/pas2c${CMAKE_EXECUTABLE_SUFFIX}" |
21 COMMAND "${ghc_executable}" |
22 COMMAND "${ghc_executable}" |
22 ARGS ${ghc_flags} |
23 ARGS ${ghc_flags} |
23 MAIN_DEPENDENCY ${hwserv_main} |
24 MAIN_DEPENDENCY ${hwserv_main} |