def build_j2v8_cmake(config): cmake_vars = cmu.setAllVars(config) cmake_toolchain = cmu.setToolchain("$BUILD_CWD/docker/android/android.$ARCH.toolchain.cmake") return \ u.mkdir(u.cmake_out_dir) + \ ["cd " + u.cmake_out_dir] + \ u.rm("CMakeCache.txt CMakeFiles/") + [ """cmake \ -DCMAKE_BUILD_TYPE=Release \ %(cmake_vars)s \ %(cmake_toolchain)s \ ../../ \ """ % locals() ]
def build_j2v8_cmake(config): cmake_vars = cmu.setAllVars(config) cmake_toolchain = cmu.setToolchain( "$BUILD_CWD/docker/android/android.$ARCH.toolchain.cmake") dest_cpu = c.arch_x64 if config.arch == c.arch_x86_64 else config.arch V8_monolith_library_dir = config.platform + "." + dest_cpu return \ u.mkdir(u.cmake_out_dir) + \ ["cd " + u.cmake_out_dir] + \ u.rm("CMakeCache.txt CMakeFiles/") + [ """cmake \ -DJ2V8_MONOLITH_LIB_DIR={0} \ -DCMAKE_BUILD_TYPE=Release \ %(cmake_vars)s \ %(cmake_toolchain)s \ ../../ \ """.format(V8_monolith_library_dir) % locals() ]