-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #70 from ppvan/dev
Doing some stuff on the build system
- Loading branch information
Showing
58 changed files
with
242 additions
and
243 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
26 changes: 13 additions & 13 deletions
26
res/gtk/icons/table-symbolic.svg → resources/gtk/icons/table-symbolic.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
|
||
|
||
blueprint_compiler = find_program('blueprint-compiler') | ||
|
||
# CURRENT_SOURCE_DIR relative to BUILDDIR blueprints_output_dir = meson.current_build_dir() | ||
# This is a hack to make sure below target was run. For some reason you can't use example from blueprint docs. | ||
|
||
psequel_resources_dir = meson.current_build_dir() | ||
|
||
mark_ups = [ | ||
'gtk/connection-listitem.blp', | ||
'gtk/connection-row.blp', | ||
'gtk/connection-view.blp', | ||
'gtk/datacell.blp', | ||
'gtk/help-overlay.blp', | ||
'gtk/preferences-window.blp', | ||
'gtk/query-editor.blp', | ||
'gtk/query-listitem.blp', | ||
'gtk/query-results.blp', | ||
'gtk/schema-view.blp', | ||
'gtk/style-switcher.blp', | ||
'gtk/table-cols.blp', | ||
'gtk/table-data-view.blp', | ||
'gtk/table-fk.blp', | ||
'gtk/table-graph.blp', | ||
'gtk/table-index.blp', | ||
'gtk/table-listitem.blp', | ||
'gtk/table-row.blp', | ||
'gtk/table-structure-view.blp', | ||
'gtk/view-data-view.blp', | ||
'gtk/view-listitem.blp', | ||
'gtk/view-structure-view.blp', | ||
'gtk/window.blp', | ||
] | ||
|
||
icons = [ | ||
'plus-large-symbolic.svg', | ||
'minus-large-symbolic.svg', | ||
'library-symbolic.svg', | ||
'object-rows-symbolic.svg', | ||
'terminal-symbolic.svg', | ||
'loupe-large-symbolic.svg', | ||
'refresh-large-symbolic.svg', | ||
'table-symbolic.svg', | ||
'columns-symbolic.svg', | ||
'step-out-symbolic.svg', | ||
'arrow-into-box-symbolic.svg', | ||
'category-search-symbolic.svg', | ||
'left-large-symbolic.svg', | ||
'right-large-symbolic.svg', | ||
'text-sql-symbolic.svg', | ||
'webview-filler-symbolic.svg', | ||
'settings-symbolic.svg', | ||
'test-pass-symbolic.svg', | ||
'history-undo-symbolic.svg', | ||
'check-plain-symbolic.svg', | ||
'export-symbolic.svg', | ||
'filemanager-app-symbolic.svg', | ||
'application-certificate-symbolic.svg', | ||
] | ||
|
||
|
||
blueprints = custom_target( | ||
'blueprints', | ||
input: files(mark_ups), | ||
build_by_default: true, | ||
build_always_stale: true, | ||
# This does not run if you use an dot (.) | ||
output: '.', | ||
command: [ | ||
blueprint_compiler, | ||
'batch-compile', | ||
'@OUTPUT@', | ||
'@CURRENT_SOURCE_DIR@', | ||
'@INPUT@', | ||
], | ||
) | ||
|
||
ui_files = '' | ||
foreach mark_up : mark_ups | ||
filename = mark_up.replace('.blp', '.ui') | ||
ui_files += f'<file preprocess="xml-stripblanks">@filename@</file>' | ||
endforeach | ||
|
||
icon_files = '' | ||
foreach icon : icons | ||
icon_files += f'<file preprocess="xml-stripblanks" alias="@icon@">gtk/icons/@icon@</file>' | ||
endforeach | ||
|
||
resource_data = configuration_data() | ||
resource_data.set('PREFIX', app_resource_prefix) | ||
resource_data.set('UI_FILES', ui_files) | ||
resource_data.set('ICON_FILES', icon_files) | ||
|
||
|
||
psequel_resources_xml = configure_file( | ||
input: 'psequel.gresource.xml.in', | ||
output: 'psequel.gresource.xml', | ||
configuration: resource_data, | ||
) | ||
|
||
|
||
psequel_resources = gnome.compile_resources( | ||
'psequel_resources', | ||
psequel_resources_xml, | ||
c_name: 'psequel_resources', | ||
dependencies: [blueprints], | ||
) | ||
|
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<gresources> | ||
<gresource prefix="/@PREFIX@"> | ||
<file alias="style.css">gtk/style.css</file> | ||
<file>migrations/version-0.sql</file> | ||
<file>migrations/version-1.sql</file> | ||
@UI_FILES@ | ||
</gresource> | ||
|
||
<gresource prefix="/@PREFIX@/icons/scalable/actions/"> | ||
@ICON_FILES@ | ||
</gresource> | ||
</gresources> |
Oops, something went wrong.