fix build on win32

This commit is contained in:
Stefano D'Angelo 2023-09-26 08:59:15 +02:00
parent 2cef5cd584
commit 34bf3bfeb9

View File

@ -13,7 +13,8 @@ LDFLAGS += \
-static-libstdc++ \ -static-libstdc++ \
-lole32 -lole32
SOURCES_COMMON += ${VST3_SDK_DIR}/public.sdk/source/main/dllmain.cpp SOURCES_VST3_SDK += \
public.sdk/source/main/dllmain.cpp
DLL_DIR := ${BUILD_PLUGIN_DIR}/Contents/${ARCH}-win DLL_DIR := ${BUILD_PLUGIN_DIR}/Contents/${ARCH}-win
DLL_FILE := ${DLL_DIR}/${NAME}.vst3 DLL_FILE := ${DLL_DIR}/${NAME}.vst3
@ -40,8 +41,8 @@ ${OBJ_DIR}/common/%.o: ${COMMON_DIR}/%.cpp | ${OBJ_DIR}/common
${OBJ_DIR}/vst3/%.o: ${VST3_SDK_DIR}/%.cpp ${OBJ_DIR}/vst3/%.o: ${VST3_SDK_DIR}/%.cpp
mkdir -p $(dir $@) mkdir -p $(dir $@)
${CXX} $^ ${CXXFLAGS} -c -o $@ ${CXX} $^ ${CXXFLAGS} -include limits -c -o $@
# thank you Steinberg for having to force inclusion on command line...
${DLL_FILE}: ${OBJ_COMMON} ${OBJ_VST3_SDK} ${OBJ_DIR}/${NAME}.o ${SOURCES} | ${DLL_DIR} ${DLL_FILE}: ${OBJ_COMMON} ${OBJ_VST3_SDK} ${OBJ_DIR}/${NAME}.o ${SOURCES} | ${DLL_DIR}
${CXX} $^ ${LDFLAGS} -o $@ ${CXX} $^ ${LDFLAGS} -o $@