-# win32 compiler additions.
-ifeq "$(OP_SYSTEM)" "WIN32"
-#ifeq "$(COMPILER)" "VISUAL_CPP"
- # processes the def file for linkage, if one has been specified.
- ifneq "$(DEF_FILE)" ""
- LOAD_FLAG_PREFIX += -def:$(DEF_FILE)
- endif
-
- ifneq "$(TYPE)" "library"
- ifneq "$(USE_MFC)" ""
- ifneq "$(findstring UNICODE, $(DEFINITIONS))" ""
- # specify the winmain type for unicode explicitly.
- LOAD_FLAG_PREFIX += -entry:wWinMainCRTStartup
- endif
- endif
- endif
-
- # these are loaded after any special debugging libs.
- ifneq "$(VCPP_USE_BASE)" ""
- # the first set will be included in almost any old program. we include
- # winmm for multimedia in the base support since we make heavy use of the
- # more accurate uptime function.
- LOAD_FLAG_PREFIX += kernel32.lib user32.lib advapi32.lib shell32.lib \
- version.lib winmm.lib shlwapi.lib
- endif
-
- ifneq "$(USE_WXWIDGETS)" ""
- DEFINITIONS += __WXWIDGETS__ __WXMSW__
- LOCAL_HEADERS += $(THIRD_PARTY_DIR)/wxwidgets/include
- LIBRARY_SEARCH_PATH += $(THIRD_PARTY_DIR)/wxwidgets/lib
-# ifeq "$(findstring UNICODE, $(DEFINITIONS))" ""
- LIBS_USED += wxmsw28_core.lib
- LOCAL_HEADERS += $(THIRD_PARTY_DIR)/wxwidgets/lib/msw
-# else
-# DEFINITIONS += wxUSE_UNICODE
-# LIBS_USED += wxmsw28u_core.lib
-# LOCAL_HEADERS += $(THIRD_PARTY_DIR)/wxwidgets/lib/mswu
-# endif
-
-## LOAD_FLAG_PREFIX += comctl32.lib shell32.lib
- VCPP_USE_GUI = t
- VCPP_USE_OLE = t
- endif
-
- ifneq "$(USE_CURL)" ""
- # curl wants this win32 flag?
-# DEFINITIONS += _WIN32
- LOCAL_HEADERS += $(THIRD_PARTY_DIR)/curl/include
- LIBRARY_SEARCH_PATH += $(THIRD_PARTY_DIR)/curl/lib
-# LIBS_USED += libcurl.dll.a
- LIBS_USED += libcurl.lib
- endif