Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad $-escape (literal $ must be written as $$) #1923

Closed
LightSun opened this issue Mar 4, 2021 · 1 comment
Closed

bad $-escape (literal $ must be written as $$) #1923

LightSun opened this issue Mar 4, 2021 · 1 comment

Comments

@LightSun
Copy link

LightSun commented Mar 4, 2021

ninja version:

C:\Users\Administrator>ninja --version
1.10.2

command:

rule cc
  command     = cmd /c "$(ANDROID_NDK_CLANG)/bin/clang $defines $includes $flags -MMD -MF $out.d -c -o $out $in"
  description = cc $out
  depfile     = $out.d
  deps        = gcc

full ninja

rule cxx
  command     = cmd /c "$(ANDROID_NDK_CLANG)/bin/clang++ $defines $includes $flags -MMD -MF $out.d -c -o $out $in"
  description = cxx $out
  depfile     = $out.d
  deps        = gcc

rule ar
  command         = cmd /c "$(ANDROID_NDK_ARM64)/bin/aarch64-linux-android-ar $flags $out $in $libs"
  description     = ar $out

rule link
  command         = cmd /c "$pre_link $(ANDROID_NDK_CLANG)/bin/clang++ -o $out $all_outputfiles $walibs  $libs  $all_ldflags $post_build"
  description     = link $out

rule exec
  command     = cmd /c "$command"
  description = Run $type commands

# custom build rules
# build files
# FILE: ../../../../src/main/PDFIUM/third_party/icu/source/common/appendable.cpp
build ../../../android-arm64/obj/Debug/src/main/PDFIUM/third_party/icu/source/common/appendable.o: cxx ../../../../src/main/PDFIUM/third_party/icu/source/common/appendable.cpp| || 
  flags    =  -O3 -fexceptions -fPIC -fstack-protector-strong -Wunused-value -Wundef -gcc-toolchain $(ANDROID_NDK_ARM64) --sysroot=$(ANDROID_NDK_ROOT)/platforms/android-21/arch-arm64 -target aarch64-none-linux-androideabi -march=armv8-a -O3 -Wno-shift-negative-value -Wno-unused-parameter -DU_USING_ICU_NAMESPACE=0 -DU_ENABLE_DYLOAD=0 -DUSE_CHROMIUM_ICU=1 -DU_STATIC_IMPLEMENTATION -DU_I18N_IMPLEMENTATION -DU_COMMON_IMPLEMENTATION -DU_HIDE_DATA_SYMBOL -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DHAVE_DLOPEN=0 -DUCONFIG_ONLY_HTML_CONVERSION=1 -DUCONFIG_USE_WINDOWS_LCID_MAPPING_API=0 -DU_CHARSET_IS_UTF8=1 -DU_ICUDATAENTRY_IN_COMMON 
  includes =  -I"../../../../src/main/PDFIUM" -I"../../../../src/main/PDFIUM/public" -I"../../../../src/main/PDFIUM/third_party/icu/source/i18n" -I"../../../../src/main/PDFIUM/third_party/icu/source/common" -I"../../../../src/main/PDFIUM/third_party/freetype/include/freetype/config" -I"../../../../src/main/PDFIUM/third_party/freetype/src/include" -I"../../../../src/main/PDFIUM/third_party/skia_shared" -I"../../../../src/main/PDFIUM/third_party/cpufeatures" -I"$(ANDROID_NDK_ROOT)/sources/cxx-stl/llvm-libc++/include" -I"$(ANDROID_NDK_ROOT)/sysroot/usr/include" -I"$(ANDROID_NDK_ROOT)/sysroot/usr/include/aarch64-linux-android"
  defines  =  -DCCORE_ANDROID -DICU_UTIL_DATA_IMPL=ICU_UTIL_DATA_FILE -DHAVE_PTHREADS -DANDROID -DOPJ_STATIC -DOS_ANDROID -DWIN32_LEAN_AND_MEAN -DU_I18N_IMPLEMENTATION -DU_ICUDATAENTRY_IN_COMMON -DU_COMMON_IMPLEMENTATION -DU_STATIC_IMPLEMENTATION -DFT2_BUILD_LIBRARY -DARMV8_OS_ANDROID -DINFLATE_CHUNK_READ_64LE -D_DEBUG -DCCORE_THREAD_RR -DCCORE_CLOCK_TYPE_REALTIME
@jhasse
Copy link
Collaborator

jhasse commented Mar 5, 2021

You can not use variables like this $(ANDROID_NDK_CLANG). Looks to me like the generator made a mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants