Exemple #1
0
 def create_project(self):
     cwd = os.getcwd()
     makedirs(self.build_dir)
     os.chdir(self.build_dir)
     call([CMAKE_PATH, '..', '-G', 'MinGW Makefiles',
           '-DCMAKE_LIBRARY_PATH:PATH=%s' % LIB_PATH])
     os.chdir(cwd)
Exemple #2
0
def translate_name(name, out_dir, profile):
    makedirs(out_dir)
    shader_path = os.path.join(get_base_path(), 'shaders')
    vert_path = os.path.join(shader_path, '%s.vert' % name)
    frag_path = os.path.join(shader_path, '%s.frag' % name)
    new_vert_path = os.path.join(out_dir, '%s.vert' % name)
    new_frag_path = os.path.join(out_dir, '%s.frag' % name)
    translate_shader_path(vert_path, 'vertex', new_vert_path, profile)
    translate_shader_path(frag_path, 'fragment', new_frag_path, profile)
    return new_vert_path, new_frag_path
Exemple #3
0
def translate_name(name, out_dir, profile):
    makedirs(out_dir)
    shader_path = os.path.join(get_base_path(), 'shaders')
    vert_path = os.path.join(shader_path, '%s.vert' % name)
    frag_path = os.path.join(shader_path, '%s.frag' % name)
    new_vert_path = os.path.join(out_dir, '%s.vert' % name)
    new_frag_path = os.path.join(out_dir, '%s.frag' % name)
    translate_shader_path(vert_path, 'vertex', new_vert_path, profile)
    translate_shader_path(frag_path, 'fragment', new_frag_path, profile)
    return new_vert_path, new_frag_path
Exemple #4
0
    def create_project(self):
        cwd = os.getcwd()
        makedirs(self.build_dir)
        os.chdir(self.build_dir)
        args = [CMAKE_PATH, '..', '-G', 'MinGW Makefiles',
                '-DCMAKE_BUILD_TYPE=Release',
                '-DCMAKE_LIBRARY_PATH:PATH=%s' % LIB_PATH.replace('\\', '/'),
                '-DCMAKE_EXE_LINKER_FLAGS:STRING=-static-libgcc '
                '-static-libstdc++ -static', '-Wno-dev']

        call(args)

        os.chdir(cwd)
    def create_project(self):
        cwd = os.getcwd()
        makedirs(self.build_dir)
        os.chdir(self.build_dir)
        args = [
            CMAKE_PATH, '..', '-G', 'MinGW Makefiles',
            '-DCMAKE_BUILD_TYPE=Release',
            '-DCMAKE_LIBRARY_PATH:PATH=%s' % LIB_PATH.replace('\\', '/'),
            '-DCMAKE_EXE_LINKER_FLAGS:STRING=-static-libgcc '
            '-static-libstdc++ -static', '-Wno-dev'
        ]

        call(args)

        os.chdir(cwd)