4
4
apple_application_name = get_option('apple-application-name')
5
5
bundle_id_prefix = get_option('bundle-id-prefix')
6
6
xquartz_sparkle_feed_url = get_option('sparkle-feed-url')
8
bundle_version_string = meson.project_version() # CFBundleShortVersionString
9
bundle_version = release # CFBundleVersion
7
xquartz_sparkle_public_edkey = get_option('sparkle-public-edkey')
9
bundle_version_string = get_option('bundle-version-string') # CFBundleShortVersionString
10
if bundle_version_string == 'auto'
11
bundle_version_string = meson.project_version()
14
bundle_version = get_option('bundle-version') # CFBundleVersion
15
if bundle_version == 'auto'
16
version_arr = bundle_version_string.split('.')
17
version_major = version_arr[0].to_int()
18
version_minor = version_arr[1].to_int()
19
version_tiny = version_arr[2].to_int()
20
bundle_version = '@0@.@1@.@2@'.format(version_major, version_minor, version_tiny)
11
23
bundle_id_def = '-DBUNDLE_ID_PREFIX="@0@"'.format(bundle_id_prefix)
13
25
bundle_root = join_paths(apple_applications_dir, apple_application_name + '.app')
15
27
# using sparkle update framework?
16
build_sparkle = xquartz_sparkle_feed_url != ''
28
build_sparkle = xquartz_sparkle_feed_url != '' and xquartz_sparkle_public_edkey != ''
18
30
sparkle = dependency('Sparkle', method: 'extraframework')
34
'-DXQUARTZ_SPARKLE_FEED_URL=@0@'.format(xquartz_sparkle_feed_url),
35
'-DXQUARTZ_SPARKLE_PUBLIC_EDKEY=@0@'.format(xquartz_sparkle_public_edkey),
22
42
srcs_libxquartz = [
43
'NSUserDefaults+XQuartzDefaults.m',
23
44
'X11Application.m',