mirror of
https://github.com/corda/corda.git
synced 2025-01-07 13:38:47 +00:00
additional tweaks to make embedded resources work on darwin
This commit is contained in:
parent
618684de6e
commit
6bca3a8665
2
makefile
2
makefile
@ -298,7 +298,7 @@ $(binaryToMacho): $(src)/binaryToMacho.cpp
|
|||||||
$(classpath-object): $(build)/classpath.jar $(binaryToMacho)
|
$(classpath-object): $(build)/classpath.jar $(binaryToMacho)
|
||||||
ifeq ($(platform),darwin)
|
ifeq ($(platform),darwin)
|
||||||
$(binaryToMacho) $(build)/classpath.jar \
|
$(binaryToMacho) $(build)/classpath.jar \
|
||||||
__binary_classpath_jar_data __binary_classpath_jar_size > $(@)
|
__binary_classpath_jar_start __binary_classpath_jar_size > $(@)
|
||||||
else
|
else
|
||||||
(wd=$$(pwd); \
|
(wd=$$(pwd); \
|
||||||
cd $(build); \
|
cd $(build); \
|
||||||
|
@ -19,11 +19,10 @@ void operator delete(void*) { abort(); }
|
|||||||
# define SYMBOL(x) _binary_classpath_jar_##x
|
# define SYMBOL(x) _binary_classpath_jar_##x
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
extern "C" {
|
|
||||||
|
|
||||||
#ifndef __APPLE__
|
|
||||||
#define BOOT_CLASSPATH "[classpathJar]"
|
#define BOOT_CLASSPATH "[classpathJar]"
|
||||||
|
|
||||||
|
extern "C" {
|
||||||
|
|
||||||
extern const uint8_t SYMBOL(start)[];
|
extern const uint8_t SYMBOL(start)[];
|
||||||
extern const uint8_t SYMBOL(size)[];
|
extern const uint8_t SYMBOL(size)[];
|
||||||
|
|
||||||
@ -33,7 +32,6 @@ extern "C" {
|
|||||||
*size = reinterpret_cast<uintptr_t>(SYMBOL(size));
|
*size = reinterpret_cast<uintptr_t>(SYMBOL(size));
|
||||||
return SYMBOL(start);
|
return SYMBOL(start);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user