Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
C
core
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
LibreOffice
core
Commits
826c9551
Kaydet (Commit)
826c9551
authored
Şub 24, 2012
tarafından
David Tardon
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
add support for platform spec. data in manifest and description
üst
2da1e35b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
33 additions
and
11 deletions
+33
-11
Extension.mk
solenv/gbuild/Extension.mk
+32
-11
TargetLocations.mk
solenv/gbuild/TargetLocations.mk
+1
-0
No files found.
solenv/gbuild/Extension.mk
Dosyayı görüntüle @
826c9551
...
@@ -45,6 +45,17 @@ gb_Extension_HELPEXCOMMAND := \
...
@@ -45,6 +45,17 @@ gb_Extension_HELPEXCOMMAND := \
# does not contain en-US because it is special cased in gb_Extension_Extension
# does not contain en-US because it is special cased in gb_Extension_Extension
gb_Extension_LANGS := $(filter-out en-US,$(gb_WITH_LANG))
gb_Extension_LANGS := $(filter-out en-US,$(gb_WITH_LANG))
# Substitute platform or copy if no platform has been set
define gb_Extension__subst_platform
$(if $(PLATFORM),\
sed \
-e 's/@PLATFORM@/$(PLATFORM)/' \
-e 's/@EXEC_EXTENSION@/$(gb_Executable_EXT)/' \
-e 's/@SHARED_EXTENSION@/$(gb_Library_DLLEXT)/' \
$(1) > $(2),\
cp -f $(1) $(2))
endef
# remove extension directory in workdir and oxt file in workdir and outdir
# remove extension directory in workdir and oxt file in workdir and outdir
$(call gb_Extension_get_clean_target,%) :
$(call gb_Extension_get_clean_target,%) :
$(call gb_Output_announce,$*,$(false),OXT,3)
$(call gb_Output_announce,$*,$(false),OXT,3)
...
@@ -78,11 +89,12 @@ $(call gb_Extension_get_target,%) : \
...
@@ -78,11 +89,12 @@ $(call gb_Extension_get_target,%) : \
$(call gb_Extension_get_workdir,%)/description.xml
$(call gb_Extension_get_workdir,%)/description.xml
$(call gb_Output_announce,$*,$(true),OXT,3)
$(call gb_Output_announce,$*,$(true),OXT,3)
$(call gb_Helper_abbreviate_dirs_native,\
$(call gb_Helper_abbreviate_dirs_native,\
mkdir -p $(call gb_Extension_get_workdir,$*)/META-INF \
mkdir -p $(call gb_Extension_get_rootdir,$*)/META-INF \
$(call gb_Extension_get_workdir,$*)/registration && \
$(call gb_Extension_get_rootdir,$*)/registration && \
cp -f $(MANIFEST) $(call gb_Extension_get_workdir,$*)/META-INF && \
$(call gb_Extension__subst_platform,$(call gb_Extension_get_workdir,$*)/description.xml,$(call gb_Extension_get_rootdir,$*)/description.xml) && \
cp -f $(OUTDIR)/bin/osl/$(gb_Extension_LICENSEFILE) $(call gb_Extension_get_workdir,$*)/registration && \
$(call gb_Extension__subst_platform,$(MANIFEST),$(call gb_Extension_get_rootdir,$*)/META-INF/manifest.xml) && \
cd $(call gb_Extension_get_workdir,$*) && \
cp -f $(OUTDIR)/bin/osl/$(gb_Extension_LICENSEFILE) $(call gb_Extension_get_rootdir,$*)/registration && \
cd $(call gb_Extension_get_rootdir,$*) && \
$(gb_Extension_ZIPCOMMAND) -rX --filesync \
$(gb_Extension_ZIPCOMMAND) -rX --filesync \
$(call gb_Extension_get_target,$*) \
$(call gb_Extension_get_target,$*) \
$(FILES) \
$(FILES) \
...
@@ -100,6 +112,7 @@ $(call gb_Extension_get_target,$(1)) : FILES := META-INF description.xml registr
...
@@ -100,6 +112,7 @@ $(call gb_Extension_get_target,$(1)) : FILES := META-INF description.xml registr
$(call gb_Extension_get_target,$(1)) : LOCATION := $(SRCDIR)/$(2)
$(call gb_Extension_get_target,$(1)) : LOCATION := $(SRCDIR)/$(2)
$(call gb_Extension_get_target,$(1)) : MANIFEST := $(SRCDIR)/$(2)/manifest.xml
$(call gb_Extension_get_target,$(1)) : MANIFEST := $(SRCDIR)/$(2)/manifest.xml
$(call gb_Extension_get_target,$(1)) : $$(MANIFEST)
$(call gb_Extension_get_target,$(1)) : $$(MANIFEST)
$(call gb_Extension_get_target,$(1)) : PLATFORM :=
$(call gb_Extension_get_target,$(1)) : PRJNAME := $(firstword $(subst /, ,$(2)))
$(call gb_Extension_get_target,$(1)) : PRJNAME := $(firstword $(subst /, ,$(2)))
$(call gb_Extension_get_workdir,$(1))/description.xml : $(SRCDIR)/$(2)/description.xml
$(call gb_Extension_get_workdir,$(1))/description.xml : $(SRCDIR)/$(2)/description.xml
ifneq ($(strip $(gb_WITH_LANG)),)
ifneq ($(strip $(gb_WITH_LANG)),)
...
@@ -119,12 +132,20 @@ $(call gb_Extension_get_target,$(1)) : MANIFEST := $(2)
...
@@ -119,12 +132,20 @@ $(call gb_Extension_get_target,$(1)) : MANIFEST := $(2)
endef
endef
# Set platform.
#
# Only use this if the extension is platform-dependent.
define gb_Extension_set_platform
$(call gb_Extension_get_target,$(1)) : PLATFORM := $(2)
endef
# adding a file creates a dependency to it
# adding a file creates a dependency to it
# file is copied to $(WORKDIR)
# file is copied to $(WORKDIR)
define gb_Extension_add_file
define gb_Extension_add_file
$(call gb_Extension_get_target,$(1)) : FILES += $(2)
$(call gb_Extension_get_target,$(1)) : FILES += $(2)
$(call gb_Extension_get_target,$(1)) : $(call gb_Extension_get_
work
dir,$(1))/$(2)
$(call gb_Extension_get_target,$(1)) : $(call gb_Extension_get_
root
dir,$(1))/$(2)
$(call gb_Extension_get_
work
dir,$(1))/$(2) : $(3)
$(call gb_Extension_get_
root
dir,$(1))/$(2) : $(3)
mkdir -p $$(dir $$@)
mkdir -p $$(dir $$@)
cp -f $$< $$@
cp -f $$< $$@
...
@@ -149,8 +170,8 @@ $(call gb_Extension_get_target,$(1)) : FILES += $(foreach lang,$(subst -,_,$(gb_
...
@@ -149,8 +170,8 @@ $(call gb_Extension_get_target,$(1)) : FILES += $(foreach lang,$(subst -,_,$(gb_
$(call gb_Extension_get_target,$(1)) : SDF2 := $(gb_SDFLOCATION)/$(subst $(SRCDIR),,$(dir $(3)))localize.sdf
$(call gb_Extension_get_target,$(1)) : SDF2 := $(gb_SDFLOCATION)/$(subst $(SRCDIR),,$(dir $(3)))localize.sdf
$(call gb_Extension_get_target,$(1)) : $$(SDF2)
$(call gb_Extension_get_target,$(1)) : $$(SDF2)
endif
endif
$(call gb_Extension_get_target,$(1)) : $(call gb_Extension_get_
work
dir,$(1))/$(2)
$(call gb_Extension_get_target,$(1)) : $(call gb_Extension_get_
root
dir,$(1))/$(2)
$(call gb_Extension_get_
work
dir,$(1))/$(2) : $(3)
$(call gb_Extension_get_
root
dir,$(1))/$(2) : $(3)
$$(call gb_Output_announce,$(2),$(true),PRP,3)
$$(call gb_Output_announce,$(2),$(true),PRP,3)
mkdir -p $$(dir $$@)
mkdir -p $$(dir $$@)
cp -f $$< $$@
cp -f $$< $$@
...
@@ -172,8 +193,8 @@ endif
...
@@ -172,8 +193,8 @@ endif
endef
endef
define gb_Extension_localize_help_onelang
define gb_Extension_localize_help_onelang
$(call gb_Extension_get_target,$(1)) : $(call gb_Extension_get_
work
dir,$(1))/$(2)
$(call gb_Extension_get_target,$(1)) : $(call gb_Extension_get_
root
dir,$(1))/$(2)
$(call gb_Extension_get_
work
dir,$(1))/$(2) : $(3) $(gb_Extension_HELPEXTARGET)
$(call gb_Extension_get_
root
dir,$(1))/$(2) : $(3) $(gb_Extension_HELPEXTARGET)
$(call gb_Output_announce,$(2),$(true),XHP,3)
$(call gb_Output_announce,$(2),$(true),XHP,3)
mkdir -p $$(dir $$@)
mkdir -p $$(dir $$@)
$(gb_Extension_HELPEXCOMMAND) -i $$(call gb_Helper_native_path,$$<) -o $$(call gb_Helper_native_path,$$@) -l $(4) -m $$(SDF3)
$(gb_Extension_HELPEXCOMMAND) -i $$(call gb_Helper_native_path,$$<) -o $$(call gb_Helper_native_path,$$@) -l $(4) -m $$(SDF3)
...
...
solenv/gbuild/TargetLocations.mk
Dosyayı görüntüle @
826c9551
...
@@ -82,6 +82,7 @@ gb_GenCxxObject_get_target = $(WORKDIR)/GenCxxObject/$(1).o
...
@@ -82,6 +82,7 @@ gb_GenCxxObject_get_target = $(WORKDIR)/GenCxxObject/$(1).o
gb_Executable_get_external_headers_target = $(WORKDIR)/ExternalHeaders/Executable/$(1)
gb_Executable_get_external_headers_target = $(WORKDIR)/ExternalHeaders/Executable/$(1)
gb_Executable_get_headers_target = $(WORKDIR)/Headers/Executable/$(1)
gb_Executable_get_headers_target = $(WORKDIR)/Headers/Executable/$(1)
gb_Extension_get_target = $(WORKDIR)/Extension/$(1).oxt
gb_Extension_get_target = $(WORKDIR)/Extension/$(1).oxt
gb_Extension_get_rootdir = $(WORKDIR)/Extension/$(1)/root
gb_Extension_get_workdir = $(WORKDIR)/Extension/$(1)
gb_Extension_get_workdir = $(WORKDIR)/Extension/$(1)
gb_ExternalLib_get_workdir = $(WORKDIR)/ExternalLib/$(1)
gb_ExternalLib_get_workdir = $(WORKDIR)/ExternalLib/$(1)
gb_ExternalLib_get_builddir = $(WORKDIR)/ExternalLib/$(1)/build
gb_ExternalLib_get_builddir = $(WORKDIR)/ExternalLib/$(1)/build
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment