Example #1
0
def build_j2v8_cmake(config):
    cmake_vars = cmu.setAllVars(config)

    # NOTE: uses Python string interpolation (see: https://stackoverflow.com/a/4450610)
    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 \
            ../../ \
        """
        % locals()]
Example #2
0
def build_j2v8_cmake(config):
    cmake_vars = cmu.setAllVars(config)

    # NOTE: uses Python string interpolation (see: https://stackoverflow.com/a/4450610)
    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 \
            ../../ \
        """
        % locals()]
Example #3
0
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()
    ]
Example #4
0
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()
    ]
Example #5
0
def build_j2v8_cmake(config):
    cmake_vars = cmu.setAllVars(config)
    cmake_gen_suffix = " Win64" if config.arch == c.arch_x64 else ""
    cmake_pdb_fix_flag = cmu.setWin32PdbDockerFix(config)

    # NOTE: uses Python string interpolation (see: https://stackoverflow.com/a/4450610)
    return \
        u.mkdir(u.cmake_out_dir) + \
        ["cd " + u.cmake_out_dir] + \
        u.rm("CMakeCache.txt CMakeFiles/") + \
        ["""cmake \
            ../../ \
            %(cmake_vars)s \
            %(cmake_pdb_fix_flag)s \
            -G"Visual Studio 14 2015%(cmake_gen_suffix)s"
        """
        % locals()]
Example #6
0
def build_j2v8_cmake(config):
    cmake_vars = cmu.setAllVars(config)
    cmake_gen_suffix = " Win64" if config.arch == c.arch_x64 else ""
    cmake_pdb_fix_flag = cmu.setWin32PdbDockerFix(config)

    # NOTE: uses Python string interpolation (see: https://stackoverflow.com/a/4450610)
    return \
        u.mkdir(u.cmake_out_dir) + \
        ["cd " + u.cmake_out_dir] + \
        u.rm("CMakeCache.txt CMakeFiles/") + \
        ["""cmake \
            ../../ \
            %(cmake_vars)s \
            %(cmake_pdb_fix_flag)s \
            -G"Visual Studio 14 2015%(cmake_gen_suffix)s"
        """
        % locals()]
Example #7
0
def build_j2v8_cmake(config):
    cmake_vars = cmu.setAllVars(config)
    V8_monolith_library_dir = config.platform + "." + config.arch
    
    # NOTE: uses Python string interpolation (see: https://stackoverflow.com/a/4450610)
    return \
        u.mkdir(u.cmake_out_dir) + \
        ["cd " + u.cmake_out_dir] + \
        u.rm("CMakeCache.txt CMakeFiles/") + \
        u.setJavaHome(config) + \
        ["""cmake \
            -DJ2V8_MONOLITH_LIB_DIR={0} \
            -DCMAKE_BUILD_TYPE=Release \
            %(cmake_vars)s \
            ../../ \
        """.format(V8_monolith_library_dir)
        % locals()]
Example #8
0
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()
    ]