fix Windows cross-compile build

This commit is contained in:
Joel Dice 2012-12-04 17:37:02 -07:00
parent 2659e32b80
commit 36aa74316a
3 changed files with 8 additions and 9 deletions

View File

@ -496,7 +496,7 @@ ifeq ($(platform),windows)
else
shared += -Wl,--add-stdcall-alias
endif
embed = $(build-embed)/embed.exe
embed-loader = $(build-embed-loader)/embed-loader.exe
embed-loader-o = $(build-embed)/embed-loader.o
@ -1021,13 +1021,13 @@ endif
ifdef embed
$(embed): $(embed-objects) $(embed-loader-o)
@echo "building $(embed)"
$(build-cxx) $(^) -mwindows -mconsole -static -o $(@)
$(cxx) $(^) -mwindows -mconsole -static -o $(@)
$(build-embed)/%.o: $(src)/%.cpp
@echo "compiling $(@)"
@mkdir -p $(dir $(@))
$(build-cxx) -D_UNICODE -DUNICODE -c $(<) -o $(@)
$(cxx) -D_UNICODE -DUNICODE -c $(<) -o $(@)
$(embed-loader-o): $(embed-loader) $(converter)
@mkdir -p $(dir $(@))
$(converter) $(<) $(@) _binary_loader_start \
@ -1047,7 +1047,6 @@ $(build-embed-loader)/%.o: $(src)/%.cpp
@mkdir -p $(dir $(@))
$(cxx) -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/win32 \
-D_JNI_IMPLEMENTATION_ -c $(<) -o $(@)
endif
$(build)/%.o: $(lzma)/C/%.c

View File

@ -8,7 +8,7 @@
There is NO WARRANTY for this software. See license.txt for
details. */
#include <Windows.h>
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#include <stdint.h>

View File

@ -8,7 +8,7 @@
There is NO WARRANTY for this software. See license.txt for
details. */
#include <Windows.h>
#include <windows.h>
#include <tchar.h>
#include <stdint.h>
@ -102,4 +102,4 @@ main(int ac, const char** av)
vm->DestroyJavaVM();
return exitCode;
}
}