filedialog 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/gempush.yml +31 -0
- data/.gitignore +13 -0
- data/.gitmodules +3 -0
- data/.rubocop.yml +19 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +30 -0
- data/LICENSE +674 -0
- data/README.md +22 -0
- data/Rakefile +35 -0
- data/bin/console +25 -0
- data/deps/filedialogbuilddeps.rb +49 -0
- data/deps/nativefiledialog/.github/ISSUE_TEMPLATE/bug_report.md +32 -0
- data/deps/nativefiledialog/.gitignore +181 -0
- data/deps/nativefiledialog/LICENSE +16 -0
- data/deps/nativefiledialog/README.md +180 -0
- data/deps/nativefiledialog/build/dont_run_premake.txt +1 -0
- data/deps/nativefiledialog/build/gmake_linux/Makefile +101 -0
- data/deps/nativefiledialog/build/gmake_linux/nfd.make +192 -0
- data/deps/nativefiledialog/build/gmake_linux/test_opendialog.make +188 -0
- data/deps/nativefiledialog/build/gmake_linux/test_opendialogmultiple.make +188 -0
- data/deps/nativefiledialog/build/gmake_linux/test_pickfolder.make +188 -0
- data/deps/nativefiledialog/build/gmake_linux/test_savedialog.make +188 -0
- data/deps/nativefiledialog/build/gmake_linux_zenity/Makefile +101 -0
- data/deps/nativefiledialog/build/gmake_linux_zenity/nfd.make +192 -0
- data/deps/nativefiledialog/build/gmake_linux_zenity/test_opendialog.make +188 -0
- data/deps/nativefiledialog/build/gmake_linux_zenity/test_opendialogmultiple.make +188 -0
- data/deps/nativefiledialog/build/gmake_linux_zenity/test_pickfolder.make +188 -0
- data/deps/nativefiledialog/build/gmake_linux_zenity/test_savedialog.make +188 -0
- data/deps/nativefiledialog/build/gmake_macosx/Makefile +85 -0
- data/deps/nativefiledialog/build/gmake_macosx/nfd.make +154 -0
- data/deps/nativefiledialog/build/gmake_macosx/test_opendialog.make +150 -0
- data/deps/nativefiledialog/build/gmake_macosx/test_opendialogmultiple.make +150 -0
- data/deps/nativefiledialog/build/gmake_macosx/test_pickfolder.make +150 -0
- data/deps/nativefiledialog/build/gmake_macosx/test_savedialog.make +150 -0
- data/deps/nativefiledialog/build/gmake_windows/Makefile +101 -0
- data/deps/nativefiledialog/build/gmake_windows/nfd.make +192 -0
- data/deps/nativefiledialog/build/gmake_windows/test_opendialog.make +188 -0
- data/deps/nativefiledialog/build/gmake_windows/test_opendialogmultiple.make +188 -0
- data/deps/nativefiledialog/build/gmake_windows/test_pickfolder.make +188 -0
- data/deps/nativefiledialog/build/gmake_windows/test_savedialog.make +188 -0
- data/deps/nativefiledialog/build/premake5.lua +265 -0
- data/deps/nativefiledialog/build/vs2010/NativeFileDialog.sln +78 -0
- data/deps/nativefiledialog/build/vs2010/nfd.vcxproj +168 -0
- data/deps/nativefiledialog/build/vs2010/nfd.vcxproj.filters +20 -0
- data/deps/nativefiledialog/build/vs2010/test_opendialog.vcxproj +182 -0
- data/deps/nativefiledialog/build/vs2010/test_opendialogmultiple.vcxproj +182 -0
- data/deps/nativefiledialog/build/vs2010/test_pickfolder.vcxproj +182 -0
- data/deps/nativefiledialog/build/vs2010/test_savedialog.vcxproj +182 -0
- data/deps/nativefiledialog/build/xcode4/NativeFileDialog.xcworkspace/contents.xcworkspacedata +19 -0
- data/deps/nativefiledialog/build/xcode4/nfd.xcodeproj/project.pbxproj +228 -0
- data/deps/nativefiledialog/build/xcode4/test_opendialog.xcodeproj/project.pbxproj +294 -0
- data/deps/nativefiledialog/build/xcode4/test_opendialogmultiple.xcodeproj/project.pbxproj +294 -0
- data/deps/nativefiledialog/build/xcode4/test_pickfolder.xcodeproj/project.pbxproj +294 -0
- data/deps/nativefiledialog/build/xcode4/test_savedialog.xcodeproj/project.pbxproj +294 -0
- data/deps/nativefiledialog/docs/build.md +39 -0
- data/deps/nativefiledialog/docs/contributing.md +25 -0
- data/deps/nativefiledialog/screens/open_cocoa.png +0 -0
- data/deps/nativefiledialog/screens/open_gtk3.png +0 -0
- data/deps/nativefiledialog/screens/open_win.png +0 -0
- data/deps/nativefiledialog/src/common.h +21 -0
- data/deps/nativefiledialog/src/include/nfd.h +74 -0
- data/deps/nativefiledialog/src/nfd_cocoa.m +286 -0
- data/deps/nativefiledialog/src/nfd_common.c +142 -0
- data/deps/nativefiledialog/src/nfd_common.h +39 -0
- data/deps/nativefiledialog/src/nfd_gtk.c +379 -0
- data/deps/nativefiledialog/src/nfd_win.cpp +762 -0
- data/deps/nativefiledialog/src/nfd_zenity.c +307 -0
- data/deps/nativefiledialog/src/simple_exec.h +218 -0
- data/deps/nativefiledialog/test/test_opendialog.c +29 -0
- data/deps/nativefiledialog/test/test_opendialogmultiple.c +32 -0
- data/deps/nativefiledialog/test/test_pickfolder.c +29 -0
- data/deps/nativefiledialog/test/test_savedialog.c +28 -0
- data/ext/filedialog/extconf.rb +58 -0
- data/ext/filedialog/filedialog.c +118 -0
- data/filedialog.gemspec +48 -0
- data/lib/filedialog.rb +50 -0
- data/lib/filedialog/version.rb +5 -0
- metadata +137 -0
@@ -0,0 +1,188 @@
|
|
1
|
+
# GNU Make project makefile autogenerated by Premake
|
2
|
+
|
3
|
+
ifndef config
|
4
|
+
config=release_x64
|
5
|
+
endif
|
6
|
+
|
7
|
+
ifndef verbose
|
8
|
+
SILENT = @
|
9
|
+
endif
|
10
|
+
|
11
|
+
.PHONY: clean prebuild prelink
|
12
|
+
|
13
|
+
ifeq ($(config),release_x64)
|
14
|
+
RESCOMP = windres
|
15
|
+
TARGETDIR = ../bin
|
16
|
+
TARGET = $(TARGETDIR)/test_opendialogmultiple
|
17
|
+
OBJDIR = ../obj/x64/Release/test_opendialogmultiple
|
18
|
+
DEFINES += -DNDEBUG
|
19
|
+
INCLUDES += -I../../src/include
|
20
|
+
FORCE_INCLUDE +=
|
21
|
+
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
22
|
+
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -O2
|
23
|
+
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -O2
|
24
|
+
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
25
|
+
LIBS += ../lib/Release/x64/libnfd.a
|
26
|
+
LDDEPS += ../lib/Release/x64/libnfd.a
|
27
|
+
ALL_LDFLAGS += $(LDFLAGS) -L../lib/Release/x64 -L/usr/lib64 -m64 -s -lnfd `pkg-config --libs gtk+-3.0`
|
28
|
+
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
|
29
|
+
define PREBUILDCMDS
|
30
|
+
endef
|
31
|
+
define PRELINKCMDS
|
32
|
+
endef
|
33
|
+
define POSTBUILDCMDS
|
34
|
+
endef
|
35
|
+
all: prebuild prelink $(TARGET)
|
36
|
+
@:
|
37
|
+
|
38
|
+
endif
|
39
|
+
|
40
|
+
ifeq ($(config),release_x86)
|
41
|
+
RESCOMP = windres
|
42
|
+
TARGETDIR = ../bin
|
43
|
+
TARGET = $(TARGETDIR)/test_opendialogmultiple
|
44
|
+
OBJDIR = ../obj/x86/Release/test_opendialogmultiple
|
45
|
+
DEFINES += -DNDEBUG
|
46
|
+
INCLUDES += -I../../src/include
|
47
|
+
FORCE_INCLUDE +=
|
48
|
+
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
49
|
+
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -O2
|
50
|
+
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m32 -O2
|
51
|
+
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
52
|
+
LIBS += ../lib/Release/x86/libnfd.a
|
53
|
+
LDDEPS += ../lib/Release/x86/libnfd.a
|
54
|
+
ALL_LDFLAGS += $(LDFLAGS) -L../lib/Release/x86 -L/usr/lib32 -m32 -s -lnfd `pkg-config --libs gtk+-3.0`
|
55
|
+
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
|
56
|
+
define PREBUILDCMDS
|
57
|
+
endef
|
58
|
+
define PRELINKCMDS
|
59
|
+
endef
|
60
|
+
define POSTBUILDCMDS
|
61
|
+
endef
|
62
|
+
all: prebuild prelink $(TARGET)
|
63
|
+
@:
|
64
|
+
|
65
|
+
endif
|
66
|
+
|
67
|
+
ifeq ($(config),debug_x64)
|
68
|
+
RESCOMP = windres
|
69
|
+
TARGETDIR = ../bin
|
70
|
+
TARGET = $(TARGETDIR)/test_opendialogmultiple_d
|
71
|
+
OBJDIR = ../obj/x64/Debug/test_opendialogmultiple
|
72
|
+
DEFINES += -DDEBUG
|
73
|
+
INCLUDES += -I../../src/include
|
74
|
+
FORCE_INCLUDE +=
|
75
|
+
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
76
|
+
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -g
|
77
|
+
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -g
|
78
|
+
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
79
|
+
LIBS += -lnfd_d
|
80
|
+
LDDEPS +=
|
81
|
+
ALL_LDFLAGS += $(LDFLAGS) -L../lib/Debug/x64 -L/usr/lib64 -m64 -lnfd_d `pkg-config --libs gtk+-3.0`
|
82
|
+
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
|
83
|
+
define PREBUILDCMDS
|
84
|
+
endef
|
85
|
+
define PRELINKCMDS
|
86
|
+
endef
|
87
|
+
define POSTBUILDCMDS
|
88
|
+
endef
|
89
|
+
all: prebuild prelink $(TARGET)
|
90
|
+
@:
|
91
|
+
|
92
|
+
endif
|
93
|
+
|
94
|
+
ifeq ($(config),debug_x86)
|
95
|
+
RESCOMP = windres
|
96
|
+
TARGETDIR = ../bin
|
97
|
+
TARGET = $(TARGETDIR)/test_opendialogmultiple_d
|
98
|
+
OBJDIR = ../obj/x86/Debug/test_opendialogmultiple
|
99
|
+
DEFINES += -DDEBUG
|
100
|
+
INCLUDES += -I../../src/include
|
101
|
+
FORCE_INCLUDE +=
|
102
|
+
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
103
|
+
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -g
|
104
|
+
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m32 -g
|
105
|
+
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
106
|
+
LIBS += -lnfd_d
|
107
|
+
LDDEPS +=
|
108
|
+
ALL_LDFLAGS += $(LDFLAGS) -L../lib/Debug/x86 -L/usr/lib32 -m32 -lnfd_d `pkg-config --libs gtk+-3.0`
|
109
|
+
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
|
110
|
+
define PREBUILDCMDS
|
111
|
+
endef
|
112
|
+
define PRELINKCMDS
|
113
|
+
endef
|
114
|
+
define POSTBUILDCMDS
|
115
|
+
endef
|
116
|
+
all: prebuild prelink $(TARGET)
|
117
|
+
@:
|
118
|
+
|
119
|
+
endif
|
120
|
+
|
121
|
+
OBJECTS := \
|
122
|
+
$(OBJDIR)/test_opendialogmultiple.o \
|
123
|
+
|
124
|
+
RESOURCES := \
|
125
|
+
|
126
|
+
CUSTOMFILES := \
|
127
|
+
|
128
|
+
SHELLTYPE := posix
|
129
|
+
ifeq (.exe,$(findstring .exe,$(ComSpec)))
|
130
|
+
SHELLTYPE := msdos
|
131
|
+
endif
|
132
|
+
|
133
|
+
$(TARGET): $(GCH) ${CUSTOMFILES} $(OBJECTS) $(LDDEPS) $(RESOURCES) | $(TARGETDIR)
|
134
|
+
@echo Linking test_opendialogmultiple
|
135
|
+
$(SILENT) $(LINKCMD)
|
136
|
+
$(POSTBUILDCMDS)
|
137
|
+
|
138
|
+
$(CUSTOMFILES): | $(OBJDIR)
|
139
|
+
|
140
|
+
$(TARGETDIR):
|
141
|
+
@echo Creating $(TARGETDIR)
|
142
|
+
ifeq (posix,$(SHELLTYPE))
|
143
|
+
$(SILENT) mkdir -p $(TARGETDIR)
|
144
|
+
else
|
145
|
+
$(SILENT) mkdir $(subst /,\\,$(TARGETDIR))
|
146
|
+
endif
|
147
|
+
|
148
|
+
$(OBJDIR):
|
149
|
+
@echo Creating $(OBJDIR)
|
150
|
+
ifeq (posix,$(SHELLTYPE))
|
151
|
+
$(SILENT) mkdir -p $(OBJDIR)
|
152
|
+
else
|
153
|
+
$(SILENT) mkdir $(subst /,\\,$(OBJDIR))
|
154
|
+
endif
|
155
|
+
|
156
|
+
clean:
|
157
|
+
@echo Cleaning test_opendialogmultiple
|
158
|
+
ifeq (posix,$(SHELLTYPE))
|
159
|
+
$(SILENT) rm -f $(TARGET)
|
160
|
+
$(SILENT) rm -rf $(OBJDIR)
|
161
|
+
else
|
162
|
+
$(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
|
163
|
+
$(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
|
164
|
+
endif
|
165
|
+
|
166
|
+
prebuild:
|
167
|
+
$(PREBUILDCMDS)
|
168
|
+
|
169
|
+
prelink:
|
170
|
+
$(PRELINKCMDS)
|
171
|
+
|
172
|
+
ifneq (,$(PCH))
|
173
|
+
$(OBJECTS): $(GCH) $(PCH) | $(OBJDIR)
|
174
|
+
$(GCH): $(PCH) | $(OBJDIR)
|
175
|
+
@echo $(notdir $<)
|
176
|
+
$(SILENT) $(CC) -x c-header $(ALL_CFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<"
|
177
|
+
else
|
178
|
+
$(OBJECTS): | $(OBJDIR)
|
179
|
+
endif
|
180
|
+
|
181
|
+
$(OBJDIR)/test_opendialogmultiple.o: ../../test/test_opendialogmultiple.c
|
182
|
+
@echo $(notdir $<)
|
183
|
+
$(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
184
|
+
|
185
|
+
-include $(OBJECTS:%.o=%.d)
|
186
|
+
ifneq (,$(PCH))
|
187
|
+
-include $(OBJDIR)/$(notdir $(PCH)).d
|
188
|
+
endif
|
@@ -0,0 +1,188 @@
|
|
1
|
+
# GNU Make project makefile autogenerated by Premake
|
2
|
+
|
3
|
+
ifndef config
|
4
|
+
config=release_x64
|
5
|
+
endif
|
6
|
+
|
7
|
+
ifndef verbose
|
8
|
+
SILENT = @
|
9
|
+
endif
|
10
|
+
|
11
|
+
.PHONY: clean prebuild prelink
|
12
|
+
|
13
|
+
ifeq ($(config),release_x64)
|
14
|
+
RESCOMP = windres
|
15
|
+
TARGETDIR = ../bin
|
16
|
+
TARGET = $(TARGETDIR)/test_pickfolder
|
17
|
+
OBJDIR = ../obj/x64/Release/test_pickfolder
|
18
|
+
DEFINES += -DNDEBUG
|
19
|
+
INCLUDES += -I../../src/include
|
20
|
+
FORCE_INCLUDE +=
|
21
|
+
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
22
|
+
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -O2
|
23
|
+
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -O2
|
24
|
+
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
25
|
+
LIBS += ../lib/Release/x64/libnfd.a
|
26
|
+
LDDEPS += ../lib/Release/x64/libnfd.a
|
27
|
+
ALL_LDFLAGS += $(LDFLAGS) -L../lib/Release/x64 -L/usr/lib64 -m64 -s -lnfd `pkg-config --libs gtk+-3.0`
|
28
|
+
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
|
29
|
+
define PREBUILDCMDS
|
30
|
+
endef
|
31
|
+
define PRELINKCMDS
|
32
|
+
endef
|
33
|
+
define POSTBUILDCMDS
|
34
|
+
endef
|
35
|
+
all: prebuild prelink $(TARGET)
|
36
|
+
@:
|
37
|
+
|
38
|
+
endif
|
39
|
+
|
40
|
+
ifeq ($(config),release_x86)
|
41
|
+
RESCOMP = windres
|
42
|
+
TARGETDIR = ../bin
|
43
|
+
TARGET = $(TARGETDIR)/test_pickfolder
|
44
|
+
OBJDIR = ../obj/x86/Release/test_pickfolder
|
45
|
+
DEFINES += -DNDEBUG
|
46
|
+
INCLUDES += -I../../src/include
|
47
|
+
FORCE_INCLUDE +=
|
48
|
+
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
49
|
+
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -O2
|
50
|
+
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m32 -O2
|
51
|
+
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
52
|
+
LIBS += ../lib/Release/x86/libnfd.a
|
53
|
+
LDDEPS += ../lib/Release/x86/libnfd.a
|
54
|
+
ALL_LDFLAGS += $(LDFLAGS) -L../lib/Release/x86 -L/usr/lib32 -m32 -s -lnfd `pkg-config --libs gtk+-3.0`
|
55
|
+
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
|
56
|
+
define PREBUILDCMDS
|
57
|
+
endef
|
58
|
+
define PRELINKCMDS
|
59
|
+
endef
|
60
|
+
define POSTBUILDCMDS
|
61
|
+
endef
|
62
|
+
all: prebuild prelink $(TARGET)
|
63
|
+
@:
|
64
|
+
|
65
|
+
endif
|
66
|
+
|
67
|
+
ifeq ($(config),debug_x64)
|
68
|
+
RESCOMP = windres
|
69
|
+
TARGETDIR = ../bin
|
70
|
+
TARGET = $(TARGETDIR)/test_pickfolder_d
|
71
|
+
OBJDIR = ../obj/x64/Debug/test_pickfolder
|
72
|
+
DEFINES += -DDEBUG
|
73
|
+
INCLUDES += -I../../src/include
|
74
|
+
FORCE_INCLUDE +=
|
75
|
+
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
76
|
+
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -g
|
77
|
+
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -g
|
78
|
+
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
79
|
+
LIBS += -lnfd_d
|
80
|
+
LDDEPS +=
|
81
|
+
ALL_LDFLAGS += $(LDFLAGS) -L../lib/Debug/x64 -L/usr/lib64 -m64 -lnfd_d `pkg-config --libs gtk+-3.0`
|
82
|
+
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
|
83
|
+
define PREBUILDCMDS
|
84
|
+
endef
|
85
|
+
define PRELINKCMDS
|
86
|
+
endef
|
87
|
+
define POSTBUILDCMDS
|
88
|
+
endef
|
89
|
+
all: prebuild prelink $(TARGET)
|
90
|
+
@:
|
91
|
+
|
92
|
+
endif
|
93
|
+
|
94
|
+
ifeq ($(config),debug_x86)
|
95
|
+
RESCOMP = windres
|
96
|
+
TARGETDIR = ../bin
|
97
|
+
TARGET = $(TARGETDIR)/test_pickfolder_d
|
98
|
+
OBJDIR = ../obj/x86/Debug/test_pickfolder
|
99
|
+
DEFINES += -DDEBUG
|
100
|
+
INCLUDES += -I../../src/include
|
101
|
+
FORCE_INCLUDE +=
|
102
|
+
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
103
|
+
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -g
|
104
|
+
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m32 -g
|
105
|
+
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
106
|
+
LIBS += -lnfd_d
|
107
|
+
LDDEPS +=
|
108
|
+
ALL_LDFLAGS += $(LDFLAGS) -L../lib/Debug/x86 -L/usr/lib32 -m32 -lnfd_d `pkg-config --libs gtk+-3.0`
|
109
|
+
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
|
110
|
+
define PREBUILDCMDS
|
111
|
+
endef
|
112
|
+
define PRELINKCMDS
|
113
|
+
endef
|
114
|
+
define POSTBUILDCMDS
|
115
|
+
endef
|
116
|
+
all: prebuild prelink $(TARGET)
|
117
|
+
@:
|
118
|
+
|
119
|
+
endif
|
120
|
+
|
121
|
+
OBJECTS := \
|
122
|
+
$(OBJDIR)/test_pickfolder.o \
|
123
|
+
|
124
|
+
RESOURCES := \
|
125
|
+
|
126
|
+
CUSTOMFILES := \
|
127
|
+
|
128
|
+
SHELLTYPE := posix
|
129
|
+
ifeq (.exe,$(findstring .exe,$(ComSpec)))
|
130
|
+
SHELLTYPE := msdos
|
131
|
+
endif
|
132
|
+
|
133
|
+
$(TARGET): $(GCH) ${CUSTOMFILES} $(OBJECTS) $(LDDEPS) $(RESOURCES) | $(TARGETDIR)
|
134
|
+
@echo Linking test_pickfolder
|
135
|
+
$(SILENT) $(LINKCMD)
|
136
|
+
$(POSTBUILDCMDS)
|
137
|
+
|
138
|
+
$(CUSTOMFILES): | $(OBJDIR)
|
139
|
+
|
140
|
+
$(TARGETDIR):
|
141
|
+
@echo Creating $(TARGETDIR)
|
142
|
+
ifeq (posix,$(SHELLTYPE))
|
143
|
+
$(SILENT) mkdir -p $(TARGETDIR)
|
144
|
+
else
|
145
|
+
$(SILENT) mkdir $(subst /,\\,$(TARGETDIR))
|
146
|
+
endif
|
147
|
+
|
148
|
+
$(OBJDIR):
|
149
|
+
@echo Creating $(OBJDIR)
|
150
|
+
ifeq (posix,$(SHELLTYPE))
|
151
|
+
$(SILENT) mkdir -p $(OBJDIR)
|
152
|
+
else
|
153
|
+
$(SILENT) mkdir $(subst /,\\,$(OBJDIR))
|
154
|
+
endif
|
155
|
+
|
156
|
+
clean:
|
157
|
+
@echo Cleaning test_pickfolder
|
158
|
+
ifeq (posix,$(SHELLTYPE))
|
159
|
+
$(SILENT) rm -f $(TARGET)
|
160
|
+
$(SILENT) rm -rf $(OBJDIR)
|
161
|
+
else
|
162
|
+
$(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
|
163
|
+
$(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
|
164
|
+
endif
|
165
|
+
|
166
|
+
prebuild:
|
167
|
+
$(PREBUILDCMDS)
|
168
|
+
|
169
|
+
prelink:
|
170
|
+
$(PRELINKCMDS)
|
171
|
+
|
172
|
+
ifneq (,$(PCH))
|
173
|
+
$(OBJECTS): $(GCH) $(PCH) | $(OBJDIR)
|
174
|
+
$(GCH): $(PCH) | $(OBJDIR)
|
175
|
+
@echo $(notdir $<)
|
176
|
+
$(SILENT) $(CC) -x c-header $(ALL_CFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<"
|
177
|
+
else
|
178
|
+
$(OBJECTS): | $(OBJDIR)
|
179
|
+
endif
|
180
|
+
|
181
|
+
$(OBJDIR)/test_pickfolder.o: ../../test/test_pickfolder.c
|
182
|
+
@echo $(notdir $<)
|
183
|
+
$(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
184
|
+
|
185
|
+
-include $(OBJECTS:%.o=%.d)
|
186
|
+
ifneq (,$(PCH))
|
187
|
+
-include $(OBJDIR)/$(notdir $(PCH)).d
|
188
|
+
endif
|
@@ -0,0 +1,188 @@
|
|
1
|
+
# GNU Make project makefile autogenerated by Premake
|
2
|
+
|
3
|
+
ifndef config
|
4
|
+
config=release_x64
|
5
|
+
endif
|
6
|
+
|
7
|
+
ifndef verbose
|
8
|
+
SILENT = @
|
9
|
+
endif
|
10
|
+
|
11
|
+
.PHONY: clean prebuild prelink
|
12
|
+
|
13
|
+
ifeq ($(config),release_x64)
|
14
|
+
RESCOMP = windres
|
15
|
+
TARGETDIR = ../bin
|
16
|
+
TARGET = $(TARGETDIR)/test_savedialog
|
17
|
+
OBJDIR = ../obj/x64/Release/test_savedialog
|
18
|
+
DEFINES += -DNDEBUG
|
19
|
+
INCLUDES += -I../../src/include
|
20
|
+
FORCE_INCLUDE +=
|
21
|
+
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
22
|
+
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -O2
|
23
|
+
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -O2
|
24
|
+
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
25
|
+
LIBS += ../lib/Release/x64/libnfd.a
|
26
|
+
LDDEPS += ../lib/Release/x64/libnfd.a
|
27
|
+
ALL_LDFLAGS += $(LDFLAGS) -L../lib/Release/x64 -L/usr/lib64 -m64 -s -lnfd `pkg-config --libs gtk+-3.0`
|
28
|
+
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
|
29
|
+
define PREBUILDCMDS
|
30
|
+
endef
|
31
|
+
define PRELINKCMDS
|
32
|
+
endef
|
33
|
+
define POSTBUILDCMDS
|
34
|
+
endef
|
35
|
+
all: prebuild prelink $(TARGET)
|
36
|
+
@:
|
37
|
+
|
38
|
+
endif
|
39
|
+
|
40
|
+
ifeq ($(config),release_x86)
|
41
|
+
RESCOMP = windres
|
42
|
+
TARGETDIR = ../bin
|
43
|
+
TARGET = $(TARGETDIR)/test_savedialog
|
44
|
+
OBJDIR = ../obj/x86/Release/test_savedialog
|
45
|
+
DEFINES += -DNDEBUG
|
46
|
+
INCLUDES += -I../../src/include
|
47
|
+
FORCE_INCLUDE +=
|
48
|
+
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
49
|
+
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -O2
|
50
|
+
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m32 -O2
|
51
|
+
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
52
|
+
LIBS += ../lib/Release/x86/libnfd.a
|
53
|
+
LDDEPS += ../lib/Release/x86/libnfd.a
|
54
|
+
ALL_LDFLAGS += $(LDFLAGS) -L../lib/Release/x86 -L/usr/lib32 -m32 -s -lnfd `pkg-config --libs gtk+-3.0`
|
55
|
+
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
|
56
|
+
define PREBUILDCMDS
|
57
|
+
endef
|
58
|
+
define PRELINKCMDS
|
59
|
+
endef
|
60
|
+
define POSTBUILDCMDS
|
61
|
+
endef
|
62
|
+
all: prebuild prelink $(TARGET)
|
63
|
+
@:
|
64
|
+
|
65
|
+
endif
|
66
|
+
|
67
|
+
ifeq ($(config),debug_x64)
|
68
|
+
RESCOMP = windres
|
69
|
+
TARGETDIR = ../bin
|
70
|
+
TARGET = $(TARGETDIR)/test_savedialog_d
|
71
|
+
OBJDIR = ../obj/x64/Debug/test_savedialog
|
72
|
+
DEFINES += -DDEBUG
|
73
|
+
INCLUDES += -I../../src/include
|
74
|
+
FORCE_INCLUDE +=
|
75
|
+
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
76
|
+
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m64 -g
|
77
|
+
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m64 -g
|
78
|
+
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
79
|
+
LIBS += -lnfd_d
|
80
|
+
LDDEPS +=
|
81
|
+
ALL_LDFLAGS += $(LDFLAGS) -L../lib/Debug/x64 -L/usr/lib64 -m64 -lnfd_d `pkg-config --libs gtk+-3.0`
|
82
|
+
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
|
83
|
+
define PREBUILDCMDS
|
84
|
+
endef
|
85
|
+
define PRELINKCMDS
|
86
|
+
endef
|
87
|
+
define POSTBUILDCMDS
|
88
|
+
endef
|
89
|
+
all: prebuild prelink $(TARGET)
|
90
|
+
@:
|
91
|
+
|
92
|
+
endif
|
93
|
+
|
94
|
+
ifeq ($(config),debug_x86)
|
95
|
+
RESCOMP = windres
|
96
|
+
TARGETDIR = ../bin
|
97
|
+
TARGET = $(TARGETDIR)/test_savedialog_d
|
98
|
+
OBJDIR = ../obj/x86/Debug/test_savedialog
|
99
|
+
DEFINES += -DDEBUG
|
100
|
+
INCLUDES += -I../../src/include
|
101
|
+
FORCE_INCLUDE +=
|
102
|
+
ALL_CPPFLAGS += $(CPPFLAGS) -MMD -MP $(DEFINES) $(INCLUDES)
|
103
|
+
ALL_CFLAGS += $(CFLAGS) $(ALL_CPPFLAGS) -m32 -g
|
104
|
+
ALL_CXXFLAGS += $(CXXFLAGS) $(ALL_CPPFLAGS) -m32 -g
|
105
|
+
ALL_RESFLAGS += $(RESFLAGS) $(DEFINES) $(INCLUDES)
|
106
|
+
LIBS += -lnfd_d
|
107
|
+
LDDEPS +=
|
108
|
+
ALL_LDFLAGS += $(LDFLAGS) -L../lib/Debug/x86 -L/usr/lib32 -m32 -lnfd_d `pkg-config --libs gtk+-3.0`
|
109
|
+
LINKCMD = $(CC) -o "$@" $(OBJECTS) $(RESOURCES) $(ALL_LDFLAGS) $(LIBS)
|
110
|
+
define PREBUILDCMDS
|
111
|
+
endef
|
112
|
+
define PRELINKCMDS
|
113
|
+
endef
|
114
|
+
define POSTBUILDCMDS
|
115
|
+
endef
|
116
|
+
all: prebuild prelink $(TARGET)
|
117
|
+
@:
|
118
|
+
|
119
|
+
endif
|
120
|
+
|
121
|
+
OBJECTS := \
|
122
|
+
$(OBJDIR)/test_savedialog.o \
|
123
|
+
|
124
|
+
RESOURCES := \
|
125
|
+
|
126
|
+
CUSTOMFILES := \
|
127
|
+
|
128
|
+
SHELLTYPE := posix
|
129
|
+
ifeq (.exe,$(findstring .exe,$(ComSpec)))
|
130
|
+
SHELLTYPE := msdos
|
131
|
+
endif
|
132
|
+
|
133
|
+
$(TARGET): $(GCH) ${CUSTOMFILES} $(OBJECTS) $(LDDEPS) $(RESOURCES) | $(TARGETDIR)
|
134
|
+
@echo Linking test_savedialog
|
135
|
+
$(SILENT) $(LINKCMD)
|
136
|
+
$(POSTBUILDCMDS)
|
137
|
+
|
138
|
+
$(CUSTOMFILES): | $(OBJDIR)
|
139
|
+
|
140
|
+
$(TARGETDIR):
|
141
|
+
@echo Creating $(TARGETDIR)
|
142
|
+
ifeq (posix,$(SHELLTYPE))
|
143
|
+
$(SILENT) mkdir -p $(TARGETDIR)
|
144
|
+
else
|
145
|
+
$(SILENT) mkdir $(subst /,\\,$(TARGETDIR))
|
146
|
+
endif
|
147
|
+
|
148
|
+
$(OBJDIR):
|
149
|
+
@echo Creating $(OBJDIR)
|
150
|
+
ifeq (posix,$(SHELLTYPE))
|
151
|
+
$(SILENT) mkdir -p $(OBJDIR)
|
152
|
+
else
|
153
|
+
$(SILENT) mkdir $(subst /,\\,$(OBJDIR))
|
154
|
+
endif
|
155
|
+
|
156
|
+
clean:
|
157
|
+
@echo Cleaning test_savedialog
|
158
|
+
ifeq (posix,$(SHELLTYPE))
|
159
|
+
$(SILENT) rm -f $(TARGET)
|
160
|
+
$(SILENT) rm -rf $(OBJDIR)
|
161
|
+
else
|
162
|
+
$(SILENT) if exist $(subst /,\\,$(TARGET)) del $(subst /,\\,$(TARGET))
|
163
|
+
$(SILENT) if exist $(subst /,\\,$(OBJDIR)) rmdir /s /q $(subst /,\\,$(OBJDIR))
|
164
|
+
endif
|
165
|
+
|
166
|
+
prebuild:
|
167
|
+
$(PREBUILDCMDS)
|
168
|
+
|
169
|
+
prelink:
|
170
|
+
$(PRELINKCMDS)
|
171
|
+
|
172
|
+
ifneq (,$(PCH))
|
173
|
+
$(OBJECTS): $(GCH) $(PCH) | $(OBJDIR)
|
174
|
+
$(GCH): $(PCH) | $(OBJDIR)
|
175
|
+
@echo $(notdir $<)
|
176
|
+
$(SILENT) $(CC) -x c-header $(ALL_CFLAGS) -o "$@" -MF "$(@:%.gch=%.d)" -c "$<"
|
177
|
+
else
|
178
|
+
$(OBJECTS): | $(OBJDIR)
|
179
|
+
endif
|
180
|
+
|
181
|
+
$(OBJDIR)/test_savedialog.o: ../../test/test_savedialog.c
|
182
|
+
@echo $(notdir $<)
|
183
|
+
$(SILENT) $(CC) $(ALL_CFLAGS) $(FORCE_INCLUDE) -o "$@" -MF "$(@:%.o=%.d)" -c "$<"
|
184
|
+
|
185
|
+
-include $(OBJECTS:%.o=%.d)
|
186
|
+
ifneq (,$(PCH))
|
187
|
+
-include $(OBJDIR)/$(notdir $(PCH)).d
|
188
|
+
endif
|