Ejemplo n.º 1
0
def build_matlab():
    global release
    amalgamate(core_files + ['src/coco_c_runtime.c'],  'build/matlab/coco.c', release)
    copy_file('src/coco.h', 'build/matlab/coco.h')
    write_file(hg_revision(), "build/matlab/REVISION")
    write_file(hg_version(), "build/matlab/VERSION")
    run('build/matlab', ['matlab', '-nodisplay', '-nosplash', '-r', 'setup, exit'])
Ejemplo n.º 2
0
def build_c_mo():  # added for the multiobjective case
    global release
    amalgamate(core_files + ['src/coco_c_runtime.c'],  'build/c/mo/coco.c', release)
    copy_file('src/coco.h', 'build/c/mo/coco.h')
    # copy_file('src/bbob2009_testcases.txt', 'build/c/bbob2009_testcases.txt')
    write_file(hg_revision(), "build/c/mo/REVISION")
    write_file(hg_version(), "build/c/mo/VERSION")
    make("build/c/mo", "clean")
    make("build/c/mo", "all")
Ejemplo n.º 3
0
def build_c():
    global release
    amalgamate(core_files + ['src/coco_c_runtime.c'],  'build/c/coco.c', release)
    copy_file('src/coco.h', 'build/c/coco.h')
    copy_file('src/bbob2009_testcases.txt', 'build/c/bbob2009_testcases.txt')
    write_file(hg_revision(), "build/c/REVISION")
    write_file(hg_version(), "build/c/VERSION")
    make("build/c", "clean")
    make("build/c", "all")
Ejemplo n.º 4
0
def build_java():
    global release
    amalgamate(core_files + ['src/coco_c_runtime.c'],  'build/java/coco.c', release)
    copy_file('src/coco.h', 'build/java/coco.h')
    write_file(hg_revision(), "build/java/REVISION")
    write_file(hg_version(), "build/java/VERSION")
    run('build/java', ['javac', 'JNIinterface.java'])
    run('build/java', ['javah', 'JNIinterface'])
    run('build/java', ['gcc', '-I/System/Library/Frameworks/JavaVM.framework/Headers',
                       '-c', 'JNIinterface.c'])
    run('build/java', ['gcc', '-dynamiclib', '-o', 'libJNIinterface.jnilib',
                       'JNIinterface.o'])
    run('build/java', ['javac', 'Problem.java'])
    run('build/java', ['javac', 'Benchmark.java'])
    run('build/java', ['javac', 'demo.java'])