-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatform.x86_64-linux-betterC.mk
More file actions
39 lines (29 loc) · 1.18 KB
/
platform.x86_64-linux-betterC.mk
File metadata and controls
39 lines (29 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#
# Linux x86_64
#
LINUX_X86_64_BETTERC:=x86_64-linux-betterC
PLATFORMS+=$(LINUX_X86_64_BETTERC)
ifeq ($(PLATFORM),$(LINUX_X86_64_BETTERC))
ANDROID_ABI=x86_64
DFLAGS+=$(DVERSION)=TINY_AES
MTRIPLE:=x86_64-linux
TRIPLET:=$(MTRIPLE)-android
#UNITTEST_FLAGS:=$(DDEBUG) $(DDEBUG_SYMBOLS)
ifdef BETTERC
DFLAGS+=$(DBETTERC)
DFILES?=${shell find $(DSRC) -type f -name "*.d" -path "*src/lib-betterc/*" -a -not -path "*/tests/*" -a -not -path "*/unitdata/*"}
unittest: DFILES+=src/lib-betterc/tests/unittest.d
else
DFILES?=${shell find $(DSRC) -type f -name "*.d" \( -path "*src/lib-betterC/*" -o -path "*src/lib-crypto/*" -o -path "*src/lib-hibon/*" -o -path "*src/lib-utils/*" -o -path "*src/lib-basic/*" -o -path "*src/lib-logger/*" \) -a -not -path "*/tests/*" -a -not -path "*/unitdata/*"}
endif
$(UNITTEST_BIN): $(DFILES)
unittest: LIBS+=$(LIBSECP256K1)
unittest: proto-unittest-run
target-android: LD=$(ANDROID_LD)
target-android: CC=$(ANDROID_CC)
target-android: CPP=$(ANDROID_CPP)
target-android: DFLAGS+=$(ANDROID_DFLAGS)
target-android: LIBS+=$(LDC_BUILD_RUNTIME_TMP)/lib/libdruntime-ldc.a
target-android: LIBS+=$(LDC_BUILD_RUNTIME_TMP)/lib/libphobos2-ldc.a
target-android: LDFLAGS+=-fno-weak
endif