Browse code

feat: Try to launch default browser if bridge is unavailable

This feature allows a user to open a session even if the browser is not
running, assuming a bridge is installed on the default browser.

Payson Wallach authored on 13/03/2021 21:32:30
Showing 1 changed files
... ...
@@ -4,7 +4,7 @@ project(
4 4
   'c',
5 5
   license: 'GPL-3.0',
6 6
   meson_version: '>=0.55.0',
7
-  version: '0.1.0'
7
+  version: '0.2.0'
8 8
 )
9 9
 
10 10
 vala = meson.get_compiler('vala')
... ...
@@ -15,6 +15,8 @@ glib_dep = dependency('gtk+-3.0')
15 15
 
16 16
 conf = configuration_data()
17 17
 conf.set_quoted('APP_ID', meson.project_name())
18
+conf.set_quoted('BRIDGE_DBUS_SERVICE_NAME', 'com.paysonwallach.amber.bridge')
19
+conf.set_quoted('BRIDGE_DBUS_OBJECT_PATH', '/com/paysonwallach/amber/bridge')
18 20
 
19 21
 config_h = configure_file(
20 22
   output: 'config.h',
Browse code

refactor: Pass application configuration values via a header

Payson Wallach authored on 10/03/2021 20:42:53
Showing 1 changed files
... ...
@@ -7,12 +7,35 @@ project(
7 7
   version: '0.1.0'
8 8
 )
9 9
 
10
+vala = meson.get_compiler('vala')
11
+
12
+vapi_dir = join_paths(meson.source_root(), 'vapi')
13
+
10 14
 glib_dep = dependency('gtk+-3.0')
11 15
 
16
+conf = configuration_data()
17
+conf.set_quoted('APP_ID', meson.project_name())
18
+
19
+config_h = configure_file(
20
+  output: 'config.h',
21
+  configuration: conf
22
+)
23
+
24
+config_dep = declare_dependency(
25
+  dependencies: vala.find_library('config', dirs: vapi_dir),
26
+  sources: config_h
27
+)
28
+
29
+add_project_arguments(
30
+  ['-DG_LOG_DOMAIN="@0@"'.format(meson.project_name())],
31
+  language:'c'
32
+)
33
+
12 34
 executable(
13 35
   meson.project_name(),
14 36
   'src/Main.vala',
15 37
   dependencies: [
38
+    config_dep,
16 39
     glib_dep
17 40
   ],
18 41
   install: true
Browse code

Initial commit

Payson Wallach authored on 25/11/2020 21:40:49
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,23 @@
1
+project(
2
+  'com.paysonwallach.amber.helper',
3
+  'vala',
4
+  'c',
5
+  license: 'GPL-3.0',
6
+  meson_version: '>=0.55.0',
7
+  version: '0.1.0'
8
+)
9
+
10
+glib_dep = dependency('gtk+-3.0')
11
+
12
+executable(
13
+  meson.project_name(),
14
+  'src/Main.vala',
15
+  dependencies: [
16
+    glib_dep
17
+  ],
18
+  install: true
19
+)
20
+
21
+subdir('data')
22
+
23
+meson.add_install_script('meson/post_install.py')