aboutsummaryrefslogtreecommitdiffstats
path: root/dist/win/deps/fltk4lua-0.1-1.rockspec
blob: 7161c4b8e66123c1738cd6abb748fe20f8bc0400 (plain)
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
package = "fltk4lua"
version = "0.1-1"
source = {
  url = "gitrec+https://github.com/siffiejoe/lua-fltk4lua.git",
  tag = "v0.1"
}
description = {
  summary = "Lua binding to FLTK, the Fast Light ToolKit",
  detailed = [[
    Lua binding to FLTK, a C++ GUI toolkit, which allows you to
    create GUIs from within Lua programs.
  ]],
  homepage = "https://github.com/siffiejoe/lua-fltk4lua/",
  license = "MIT+LGPL"
}
supported_platforms = { "unix", "windows" }
dependencies = {
  "lua >= 5.1, < 5.4",
  "luarocks-fetch-gitrec",
  "luarocks-build-cpp",
}
external_dependencies = {
  platforms = {
    windows = {
      FLTK = {
        header = "FL/Fl",
        library = "fltk"
      }
    },
    unix = {
      FLTK = {
        program = "fltk-config"
      }
    }
  }
}
build = {
  type = "make",
  variables = {
    DLL_INSTALL_DIR = "$(LIBDIR)",
    LUA_INCDIR = "$(LUA_INCDIR)",
    FLTK_CONFIG = "$(FLTK_BINDIR)/fltk-config",
    CXX = "g++",
    CFLAGS = "$(CFLAGS)",
    LIBFLAG = "$(LIBFLAG)",
    LIB_EXTENSION = "$(LIB_EXTENSION)",
  },
  platforms = {
    windows = {
      type = "cpp",
      modules = {
        ["fltk4lua"] = {
          sources = {
            "src/fltk4lua.cxx",
            "src/f4l_enums.cxx",
            "src/f4l_ask.cxx",
            "src/f4l_image.cxx",
            "src/f4l_shared_image.cxx",
            "src/f4l_widget.cxx",
            "src/f4l_box.cxx",
            "src/f4l_button.cxx",
            "src/f4l_chart.cxx",
            "src/f4l_clock.cxx",
            "src/f4l_group.cxx",
            "src/f4l_browserx.cxx",
            "src/f4l_browser.cxx",
            "src/f4l_file_browser.cxx",
            "src/f4l_check_browser.cxx",
            "src/f4l_input_choice.cxx",
            "src/f4l_color_chooser.cxx",
            "src/f4l_pack.cxx",
            "src/f4l_scroll.cxx",
            "src/f4l_spinner.cxx",
            "src/f4l_tabs.cxx",
            "src/f4l_tile.cxx",
            "src/f4l_window.cxx",
            "src/f4l_wizard.cxx",
            "src/f4l_input.cxx",
            "src/f4l_menu.cxx",
            "src/f4l_choice.cxx",
            "src/f4l_menu_bar.cxx",
            "src/f4l_menu_button.cxx",
            "src/f4l_progress.cxx",
            "src/f4l_valuator.cxx",
            "src/f4l_adjuster.cxx",
            "src/f4l_counter.cxx",
            "src/f4l_dial.cxx",
            "src/f4l_roller.cxx",
            "src/f4l_slider.cxx",
            "src/f4l_value_input.cxx",
            "src/f4l_value_output.cxx",
            "moon/moon.c",
            "compat-5.3/c-api/compat-5.3.c",
          },
          defines = {
            "MOON_PREFIX=f4lx",
            "COMPAT53_PREFIX=f4lx",
            "WIN32",
            "NDEBUG",
            "_CRT_SECURE_NO_WARNINGS"
          },
          libraries = {
            "fltkimages",
            "fltkjpeg",
            "fltkpng",
            "fltkzlib",
            "fltk",
            "advapi32",
            "comctl32",
            "gdi32",
            "ole32",
            "shell32",
            "user32",
            "uuid",
          },
          incdirs = {
            "$(FLTK_INCDIR)",
            "moon",
            "compat-5.3/c-api"
          },
          libdirs = { "$(FLTK_LIBDIR)" }
        }
      }
    }
  }
}