diff options
author | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-20 18:33:33 +0100 |
---|---|---|
committer | Juergen Kahrs <Juergen.Kahrs@googlemail.com> | 2013-02-20 18:33:33 +0100 |
commit | 2b2bcaaa614db05c72ce1c4d213e7a4eaab27937 (patch) | |
tree | 8640555f4e851941aac84cc643266beca33bb379 | |
parent | 030d19b3fa9ce83ebeedf4d9bf27a527977f01d7 (diff) | |
download | egawk-2b2bcaaa614db05c72ce1c4d213e7a4eaab27937.tar.gz egawk-2b2bcaaa614db05c72ce1c4d213e7a4eaab27937.tar.bz2 egawk-2b2bcaaa614db05c72ce1c4d213e7a4eaab27937.zip |
CMake and the MinGW cross-compiler can build an NSIS installer file for Microsoft Windows.
-rw-r--r-- | CMakeLists.txt | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index df4f8a2b..d4eeed2f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -41,18 +41,14 @@ endif () include_directories(${CMAKE_SOURCE_DIR}) if(WIN32 OR "${CMAKE_SYSTEM_NAME}" STREQUAL "Windows") - #DefineConfigHValue(NO_MBSSUPPORT 1) + DefineConfigHValue(HAVE_WCTYPE_T 1) DefineConfigHValue(WEOF EOF) DefineConfigHValue(HAVE_USLEEP 1) - #DefineConfigHValue(__STDC__ 1) - # awk.h changed - # pc/gawkmisc.pc:605 execvp raus + DefineConfigHValue(HAVE_WINT_T 1) + DefineConfigHValue(HAVE_ISWUPPER 1) + DefineConfigHValue(HAVE_SETENV 1) + DefineConfigHValue(STDC_HEADERS 1) set (GAWK_SOURCES ${GAWK_SOURCES} regex.c pc/getid.c pc/gawkmisc.pc) - add_definitions(-D HAVE_WINT_T) - add_definitions(-D HAVE_ISWUPPER) - add_definitions(-D HAVE_SETENV) - add_definitions(-D MB_CUR_MAX) - add_definitions(-D STDC_HEADERS) endif() set (GAWK_SOURCES ${GAWK_SOURCES} |