OTHER: Handle resources from data subdir in a cleaner way
|
@ -5,7 +5,7 @@ Name=Promoe
|
||||||
GenericName=XMMS2 Client
|
GenericName=XMMS2 Client
|
||||||
Categories=Qt;Application;AudioVideo;Audio;
|
Categories=Qt;Application;AudioVideo;Audio;
|
||||||
Exec=promoe
|
Exec=promoe
|
||||||
Icon=xmms2
|
Icon=promoe
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Type=Application
|
Type=Application
|
||||||
|
|
Before Width: | Height: | Size: 61 KiB After Width: | Height: | Size: 61 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 255 KiB After Width: | Height: | Size: 255 KiB |
Before Width: | Height: | Size: 45 KiB After Width: | Height: | Size: 45 KiB |
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 153 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 85 KiB After Width: | Height: | Size: 85 KiB |
Before Width: | Height: | Size: 822 B After Width: | Height: | Size: 822 B |
Before Width: | Height: | Size: 593 B After Width: | Height: | Size: 593 B |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
Before Width: | Height: | Size: 4.5 KiB After Width: | Height: | Size: 4.5 KiB |
Before Width: | Height: | Size: 2 KiB After Width: | Height: | Size: 2 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 4.9 KiB After Width: | Height: | Size: 4.9 KiB |
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 2.4 KiB |
Before Width: | Height: | Size: 357 B After Width: | Height: | Size: 357 B |
Before Width: | Height: | Size: 259 B After Width: | Height: | Size: 259 B |
Before Width: | Height: | Size: 158 B After Width: | Height: | Size: 158 B |
Before Width: | Height: | Size: 7.7 KiB After Width: | Height: | Size: 7.7 KiB |
Before Width: | Height: | Size: 995 B After Width: | Height: | Size: 995 B |
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.2 KiB |
Before Width: | Height: | Size: 636 B After Width: | Height: | Size: 636 B |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Before Width: | Height: | Size: 66 KiB After Width: | Height: | Size: 66 KiB |
Before Width: | Height: | Size: 255 KiB After Width: | Height: | Size: 255 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
Before Width: | Height: | Size: 94 KiB After Width: | Height: | Size: 94 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 153 KiB After Width: | Height: | Size: 153 KiB |
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 9.1 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 8.3 KiB After Width: | Height: | Size: 8.3 KiB |
Before Width: | Height: | Size: 88 KiB After Width: | Height: | Size: 88 KiB |
Before Width: | Height: | Size: 83 KiB After Width: | Height: | Size: 83 KiB |
|
@ -38,10 +38,10 @@ def set_options(opt):
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
pass
|
pass
|
||||||
def build(bld):
|
def build(bld):
|
||||||
obj = bld.new_task_gen('qt4', 'staticlib', 'cxx')
|
obj = bld.new_task_gen('qt4', 'cxx')
|
||||||
obj.target = 'promoe_data'
|
obj.target = 'promoe_data'
|
||||||
obj.install_path = 0 # Don't install
|
obj.install_path = 0 # Don't install
|
||||||
obj.source = 'Almond-blue.qrc'
|
obj.source = 'skins/Almond-blue.qrc'
|
||||||
obj.uselib = 'QTCORE'
|
obj.uselib = 'QTCORE'
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ def set_options(opt):
|
||||||
def configure(conf):
|
def configure(conf):
|
||||||
pass
|
pass
|
||||||
def build(bld):
|
def build(bld):
|
||||||
obj = bld.new_task_gen('qt4', 'staticlib', 'cxx')
|
obj = bld.new_task_gen('qt4', 'cstaticlib', 'cxx')
|
||||||
obj.target = 'promoe_lib'
|
obj.target = 'promoe_lib'
|
||||||
obj.install_path = 0 # Don't install
|
obj.install_path = 0 # Don't install
|
||||||
obj.includes = '.'
|
obj.includes = '.'
|
||||||
|
|
|
@ -91,16 +91,15 @@ def build(bld):
|
||||||
if bld.env['HAVE_SERVERBROWSER']:
|
if bld.env['HAVE_SERVERBROWSER']:
|
||||||
sources.append('ServerBrowser.cpp')
|
sources.append('ServerBrowser.cpp')
|
||||||
|
|
||||||
sources.append("../data/Almond-blue.qrc")
|
|
||||||
|
|
||||||
incdirs = bld_subdirs
|
incdirs = bld_subdirs
|
||||||
incdirs.append('.')
|
incdirs.append('.')
|
||||||
|
|
||||||
obj = bld.new_task_gen('qt4', 'program', 'cxx')
|
obj = bld.new_task_gen('qt4', 'cprogram', 'cxx')
|
||||||
obj.target = 'promoe'
|
obj.target = 'promoe'
|
||||||
obj.includes = incdirs
|
obj.includes = incdirs
|
||||||
obj.source = sources
|
obj.source = sources
|
||||||
obj.uselib_local = 'promoe_lib'
|
obj.uselib_local = 'promoe_lib'
|
||||||
|
obj.add_objects = 'promoe_data'
|
||||||
obj.uselib = 'QTCORE QTGUI AVAHI-CLIENT AVAHI-QT4'
|
obj.uselib = 'QTCORE QTGUI AVAHI-CLIENT AVAHI-QT4'
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
10
wscript
|
@ -46,6 +46,7 @@ def set_options(opt):
|
||||||
opt.tool_options('qt4')
|
opt.tool_options('qt4')
|
||||||
|
|
||||||
opt.sub_options('lib')
|
opt.sub_options('lib')
|
||||||
|
opt.sub_options('data')
|
||||||
opt.sub_options('src')
|
opt.sub_options('src')
|
||||||
|
|
||||||
|
|
||||||
|
@ -65,7 +66,7 @@ def configure(conf):
|
||||||
os.path.join(conf.env['PROMOE_DATADIR'], 'Skins'))
|
os.path.join(conf.env['PROMOE_DATADIR'], 'Skins'))
|
||||||
|
|
||||||
conf.sub_config('lib')
|
conf.sub_config('lib')
|
||||||
# conf.sub_config('data')
|
conf.sub_config('data')
|
||||||
conf.sub_config('src')
|
conf.sub_config('src')
|
||||||
|
|
||||||
conf.write_config_header('promoe_config.h')
|
conf.write_config_header('promoe_config.h')
|
||||||
|
@ -75,9 +76,10 @@ def configure(conf):
|
||||||
|
|
||||||
def build(bld):
|
def build(bld):
|
||||||
bld.add_subdirs('lib')
|
bld.add_subdirs('lib')
|
||||||
# bld.add_subdirs('data')
|
bld.add_subdirs('data')
|
||||||
bld.add_subdirs('src')
|
bld.add_subdirs('src')
|
||||||
|
|
||||||
bld.install_files('${MANDIR}/man1', 'promoe.1')
|
bld.install_files('${MANDIR}/man1', 'data/promoe.1')
|
||||||
bld.install_files('${DATADIR}/applications', 'promoe.desktop')
|
bld.install_files('${DATADIR}/applications', 'data/promoe.desktop')
|
||||||
|
bld.install_files('${DATADIR}/icons', 'data/icons/ashton-flame1/promoe.svg')
|
||||||
|
|
||||||
|
|