mirror of
https://github.com/corda/corda.git
synced 2025-01-01 02:36:44 +00:00
fix Windows cross-compile build
This commit is contained in:
parent
2659e32b80
commit
36aa74316a
11
makefile
11
makefile
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user