rev: e32a77264f85054e8319dff5214de6a709ba3384 tukan/externals/build_imgui.py -rw-r--r-- 1.2 KiB View raw Log this file
e32a77264f85 — Leonard Ritter * updated imgui/cimgui to latest revision (docking branch) 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# SDL downloader & builder

import os
from build_common import BuilderBase

class Builder(BuilderBase):
    NAME = 'imgui'
    GIT_URL = "https://github.com/ocornut/imgui"
    # 1.53
    #GIT_REVISION = "e916310b2e1f9cacbb2b9ce192a3dfb359e4b509"
    # 1.69
    #GIT_REVISION = "ebe79bbed00a13fd4455f04131b63d49c28ebd5d"
    # 1.75+ docking branch
    #GIT_REVISION = "103c5edaaa832ccded2523ea328dc4398ba7b456"
    # 1.77+ docking branch
    GIT_REVISION = "4f5aac319e3561284833db90f35d218de8b282c1"

    def run_any_build(self):
        self.copy2(os.path.join(self.TARGETDIR, 'imgui.h'),
            self.CDEFDIR)

    def run_linux2_build(self):
        """
        cmd = 'premake4 gmake'
        self.shell(cmd)

        os.chdir(os.path.join(self.TARGETDIR, 'build'))
        self.shell("make clean")

        os.environ['CFLAGS'] = '-fPIC'
        os.environ['CXXFLAGS'] = '-fPIC'
        os.environ['CPPFLAGS'] = '-fPIC'
        cmd = 'make -j 4 nanovg config=release'
        self.shell(cmd)
        self.run_any_build()
        """
        self.run_any_build()

    def run_darwin_build(self):
        self.run_any_build()

    def run_win32_build(self):
        self.run_any_build()

    def gen_cdef(self):
        pass

if __name__ == '__main__':
    Builder().run()