Commit 8596456fc69df1172c8a9334622acfb07b766a21
1 parent
bee56e87
Exists in
develop
Working on gtk-runtime.
Showing
2 changed files
with
67 additions
and
26 deletions
Show diff stats
schemas/Makefile.in
@@ -55,15 +55,15 @@ all: | @@ -55,15 +55,15 @@ all: | ||
55 | install: \ | 55 | install: \ |
56 | all | 56 | all |
57 | 57 | ||
58 | - @$(MKDIR) $(DESTDIR)/$(schemadir) | 58 | + @$(MKDIR) $(DESTDIR)$(schemadir) |
59 | @$(INSTALL_DATA) \ | 59 | @$(INSTALL_DATA) \ |
60 | @OSNAME@/application.gschema.xml \ | 60 | @OSNAME@/application.gschema.xml \ |
61 | - $(DESTDIR)/$(schemadir)/$(PRODUCT_NAME)-application.gschema.xml | 61 | + $(DESTDIR)$(schemadir)/$(PRODUCT_NAME)-application.gschema.xml |
62 | 62 | ||
63 | @$(INSTALL_DATA) \ | 63 | @$(INSTALL_DATA) \ |
64 | @OSNAME@/window.gschema.xml \ | 64 | @OSNAME@/window.gschema.xml \ |
65 | - $(DESTDIR)/$(schemadir)/$(PRODUCT_NAME)-window.gschema.xml | 65 | + $(DESTDIR)$(schemadir)/$(PRODUCT_NAME)-window.gschema.xml |
66 | 66 | ||
67 | @$(GLIB_SCHEMA_COMPILER) \ | 67 | @$(GLIB_SCHEMA_COMPILER) \ |
68 | - $(DESTDIR)/$(schemadir) | 68 | + $(DESTDIR)$(schemadir) |
69 | 69 |
win/makeruntime.sh.in
@@ -161,28 +161,6 @@ install_bin() { | @@ -161,28 +161,6 @@ install_bin() { | ||
161 | 161 | ||
162 | } | 162 | } |
163 | 163 | ||
164 | -install_locale() { | ||
165 | - | ||
166 | - | ||
167 | - | ||
168 | - mkdir -p ${buildroot}${prefix}/share/locale/pt_BR/LC_MESSAGES | ||
169 | - | ||
170 | - locales=" | ||
171 | - gettext-runtime.mo | ||
172 | - gettext-tools.mo | ||
173 | - glib20.mo | ||
174 | - gtk30.mo | ||
175 | - gtk30-properties.mo | ||
176 | - " | ||
177 | - | ||
178 | - for i in ${locales}; do | ||
179 | - | ||
180 | - find "${prefix}/share/locale" -name ${i} | ||
181 | - | ||
182 | - done | ||
183 | - | ||
184 | -} | ||
185 | - | ||
186 | install_locale() { | 164 | install_locale() { |
187 | 165 | ||
188 | mkdir -p ${buildroot}${prefix}/share/locale/pt_BR/LC_MESSAGES | 166 | mkdir -p ${buildroot}${prefix}/share/locale/pt_BR/LC_MESSAGES |
@@ -212,6 +190,69 @@ install_locale() { | @@ -212,6 +190,69 @@ install_locale() { | ||
212 | rm -f ${FILENAMES} | 190 | rm -f ${FILENAMES} |
213 | } | 191 | } |
214 | 192 | ||
193 | +install_schemas() { | ||
194 | + | ||
195 | + mkdir -p ${buildroot}${prefix}/share/glib-2.0/schemas | ||
196 | + | ||
197 | + schemas=" | ||
198 | + org.gtk.Settings.FileChooser.gschema.xml | ||
199 | + gschema.dtd | ||
200 | + " | ||
201 | + | ||
202 | + for schema in ${schemas} | ||
203 | + do | ||
204 | + cp -v "${prefix}/share/glib-2.0/schemas" "${buildroot}${prefix}/share/glib-2.0/schemas" | ||
205 | + if [ "$?" != "0" ]; then | ||
206 | + exit -1 | ||
207 | + fi | ||
208 | + done | ||
209 | + | ||
210 | + glib-compile-schemas \ | ||
211 | + --targetdir="${buildroot}${prefix}/share/glib-2.0/schemas" \ | ||
212 | + "${buildroot}${prefix}/share/glib-2.0/schemas" | ||
213 | + | ||
214 | + if [ "$?" != "0" ]; then | ||
215 | + exit -1 | ||
216 | + fi | ||
217 | +} | ||
218 | + | ||
219 | +install_theme() { | ||
220 | + | ||
221 | + mkdir -p "${buildroot}${prefix}/etc" | ||
222 | + cp -rv "${prefix}/etc/gtk-3.0" "${buildroot}${prefix}/etc" | ||
223 | + if [ "$?" != "0" ]; then | ||
224 | + exit -1 | ||
225 | + fi | ||
226 | + | ||
227 | + # https://stackoverflow.com/questions/37035936/how-to-get-native-windows-decorations-on-gtk3-on-windows-7-and-msys2 | ||
228 | + mkdir -p ${buildroot}${prefix}/etc/gtk-3.0 | ||
229 | + rm -f ${buildroot}${prefix}/etc/gtk-3.0/settings.ini | ||
230 | + rm -f ${buildroot}${prefix}/etc/gtk-3.0/gtkrc | ||
231 | + | ||
232 | + echo "[Settings]" > ${buildroot}${prefix}/etc/gtk-3.0/settings.ini | ||
233 | + echo "gtk-theme-name=win32" >> ${buildroot}${prefix}/etc/gtk-3.0/settings.ini | ||
234 | + | ||
235 | + mkdir -p ${buildroot}${prefix}/share/icons | ||
236 | + if [ "$?" != 0 ]; then | ||
237 | + echo "Can´t create icons folder" | ||
238 | + exit -1 | ||
239 | + fi | ||
240 | + | ||
241 | + cp -rv /usr/share/icons ${buildroot}${prefix}/share/icons | ||
242 | + if [ "$?" != 0 ]; then | ||
243 | + echo "Can´t copy ${1} icons" | ||
244 | + exit -1 | ||
245 | + fi | ||
246 | + | ||
247 | + #echo "${srcdir}/gtk.css" | ||
248 | + #if [ -e "${srcdir}/gtk.css" ]; then | ||
249 | + # cp "${srcdir}/gtk.css" "${TARGET}/share/themes/Default/gtk-3.0/gtk.css" | ||
250 | + #fi | ||
251 | + | ||
252 | +} | ||
253 | + | ||
215 | install_bin | 254 | install_bin |
216 | install_locale | 255 | install_locale |
256 | +install_schemas | ||
257 | +install_theme | ||
217 | 258 |