1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 icns_WRKDIR
:= $(call gb_CustomTarget_get_workdir
,sysui
/icns
)
10 icns_SRCDIR
:= $(SRCDIR
)/sysui
/desktop
/icons
/macos
12 icns_mimetypes
:= database drawing drawing-template extension formula master-document \
13 master-document-template presentation presentation-template spreadsheet \
14 spreadsheet-template text text-template
16 icns_sizes
:= 16x16
16x16@
2x
32x32
32x32@
2x
128x128
128x128@
2x
256x256
256x256@
2x
512x512
512x512@
2x
19 mkdir
-p
$(@D
) && touch
$@
21 # the writer, calc, impress, draw & base app-icons are gone...
22 $(icns_WRKDIR
)/main.icns
: $(foreach size
,$(icns_sizes
),$(icns_SRCDIR
)/app-launcher
/main.iconset
/icon_
$(size
).png
) |
$(icns_WRKDIR
)/.
dir
23 $(call gb_Output_announce
,$(@F
),$(true
),ICNS
,4)
24 iconutil
-c icns
-o
$@
$(<D
)
26 $(icns_WRKDIR
)/generic-
%.icns
: $(foreach size
,$(icns_sizes
),$(icns_SRCDIR
)/mime-generic
/%.iconset
/icon_
$(size
).png
) |
$(icns_WRKDIR
)/.
dir
27 $(call gb_Output_announce
,$(@F
),$(true
),ICNS
,3)
28 iconutil
-c icns
-o
$@
$(<D
)
30 $(icns_WRKDIR
)/oasis-
%.icns
: $(foreach size
,$(icns_sizes
),$(icns_SRCDIR
)/mime-oasis
/%.iconset
/icon_
$(size
).png
) |
$(icns_WRKDIR
)/.
dir
31 $(call gb_Output_announce
,$(@F
),$(true
),ICNS
,2)
32 iconutil
-c icns
-o
$@
$(<D
)
34 $(eval
$(call gb_Package_Package
,sysui_osxicons
,$(call gb_CustomTarget_get_workdir
,sysui
/icns
)))
35 $(call gb_Package_get_clean_target
,sysui_osxicons
): $(call gb_CustomTarget_get_clean_target
,sysui
/icns
)
37 $(eval
$(call gb_Package_add_files_with_dir
,sysui_osxicons
,Resources
,\
39 $(foreach type
,$(icns_mimetypes
),generic-
$(type
).icns oasis-
$(type
).icns
) \
42 # vim: set ts=4 sw=4 et: