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
f8d6d56e
Kaydet (Commit)
f8d6d56e
authored
Ock 20, 2011
tarafından
Mathias Bauer
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
CWS gnumake3: first draft of new makefile templates
üst
368bae76
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
503 additions
and
0 deletions
+503
-0
AllLangResTarget.mk
solenv/gbuild/templates/AllLangResTarget.mk
+49
-0
CppunitTest.mk
solenv/gbuild/templates/CppunitTest.mk
+40
-0
Executable.mk
solenv/gbuild/templates/Executable.mk
+61
-0
JunitTest.mk
solenv/gbuild/templates/JunitTest.mk
+49
-0
Library.mk
solenv/gbuild/templates/Library.mk
+104
-0
Makefile
solenv/gbuild/templates/Makefile
+38
-0
Module.mk
solenv/gbuild/templates/Module.mk
+45
-0
Package.mk
solenv/gbuild/templates/Package.mk
+42
-0
StaticLibrary.mk
solenv/gbuild/templates/StaticLibrary.mk
+35
-0
makefile.mk
solenv/gbuild/templates/makefile.mk
+40
-0
No files found.
solenv/gbuild/templates/AllLangResTarget.mk
0 → 100755
Dosyayı görüntüle @
f8d6d56e
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2009 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
# RES is the name of the resource; its file name will be RES-LOCALE.res
# MODULE is the name of the code module the makefile is located in
$(eval $(call gb_AllLangResTarget_AllLangResTarget,RES))
# declaration of images folder (e.g. default_images/MODULE/res)
$(eval $(call gb_AllLangResTarget_set_reslocation,RES,MODULE))
# declaration of a resource intermediate file (srs)
$(eval $(call gb_AllLangResTarget_add_srs,RES, RES/res))
$(eval $(call gb_SrsTarget_SrsTarget,RES/res))
# add any additional include paths here
$(eval $(call gb_SrsTarget_set_include,RES/res,\
$$(INCLUDE) \
))
# add src files here (complete path relative to repository root)
$(eval $(call gb_SrsTarget_add_files,RES/res,\
))
# vim: set noet sw=4 ts=4:
solenv/gbuild/templates/CppunitTest.mk
0 → 100755
Dosyayı görüntüle @
f8d6d56e
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2009 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
$(eval $(call gb_CppunitTest_CppunitTest,MODULE_NAME))
$(eval $(call gb_CppunitTest_add_exception_objects,MODULE_NAME, \
))
$(eval $(call gb_CppunitTest_add_linked_libs,MODULE_NAME, \
))
$(eval $(call gb_CppunitTest_set_include,MODULE_NAME,\
$$(INCLUDE) \
))
# vim: set noet sw=4 ts=4:
solenv/gbuild/templates/Executable.mk
0 → 100755
Dosyayı görüntüle @
f8d6d56e
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
$(eval $(call gb_Executable_Executable,EXEC))
$(eval $(call gb_Executable_set_include,EXEC,\
$$(INCLUDE) \
))
$(eval $(call gb_Executable_set_cxxflags,EXEC,\
$$(CXXFLAGS) \
))
$(eval $(call gb_Executable_add_linked_libs,EXEC,\
))
$(eval $(call gb_Executable_add_exception_objects,EXEC,\
))
ifeq ($(OS),WNT)
$(eval $(call gb_Executable_add_linked_libs,mkunroll,\
kernel32 \
msvcrt \
oldnames \
user32 \
uwinapi \
))
endif
ifeq ($(OS),LINUX)
$(eval $(call gb_Executable_add_linked_libs,mkunroll,\
dl \
pthread \
))
endif
# vim: set noet sw=4 ts=4:
solenv/gbuild/templates/JunitTest.mk
0 → 100755
Dosyayı görüntüle @
f8d6d56e
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2009 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
$(eval $(call gb_JunitTest_JunitTest,MODULE_TYPE))
$(eval $(call gb_JunitTest_set_defs,MODULE_TYPE,\
$$(DEFS) \
-Dorg.openoffice.test.arg.tdoc=$(SRCDIR)/MODULE/DOCUMENTPATH \
))
$(eval $(call gb_JunitTest_add_jars,MODULE_TYPE,\
$(OUTDIR)/bin/OOoRunner.jar \
$(OUTDIR)/bin/ridl.jar \
$(OUTDIR)/bin/test.jar \
$(OUTDIR)/bin/unoil.jar \
$(OUTDIR)/bin/jurt.jar \
))
$(eval $(call gb_JunitTest_add_sourcefiles,MODULE_TYPE,\
))
$(eval $(call gb_JunitTest_add_classes,MODULE_COMPLEX,\
))
# vim: set noet sw=4 ts=4:
solenv/gbuild/templates/Library.mk
0 → 100755
Dosyayı görüntüle @
f8d6d56e
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2009 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
# MODULE is the name of the module the makefile is located in
# declare a library
# LIB is the name of the library as it is found in Repository.mk
$(eval $(call gb_Library_Library,LIB))
# declare packages that will be delivered before compilation of LIB
# learn more about TYPE in the Package.mk template
$(eval $(call gb_Library_add_package_headers,LIB,MODULE_TYPE))
# for platforms supporting PCH: declare the location of the pch file
# this is the name of the cxx file (without extension)
$(eval $(call gb_Library_add_precompiled_header,LIB,$(SRCDIR)/MODULE/PCH_FILE))
# in case UNO services are exported: declare location of component file
$(eval $(call gb_Library_set_componentfile,LIB,MODULE/COMPONENT_FILE))
# add any additional include paths for this library here
$(eval $(call gb_Library_set_include,LIB,\
$$(INCLUDE) \
))
# add any additional definitions to be set for compilation here
# (e.g. -DLIB_DLLIMPLEMENTATION)
$(eval $(call gb_Library_set_defs,LIB,\
$$(DEFS) \
))
# add libraries to be linked to LIB; again these names need to be given as
# specified in Repository.mk
$(eval $(call gb_Library_add_linked_libs,LIB,\
))
# this code usually will be platform specific; these libraries are also defined in Repository.mk
ifeq ($(OS),LINUX)
$(eval $(call gb_Library_add_linked_libs,LIB,\
dl \
m \
pthread \
))
endif
ifeq ($(OS),WNT)
$(eval $(call gb_Library_add_linked_libs,LIB,\
kernel32 \
msvcrt \
oldnames \
user32 \
))
endif
# add all source files that shall be compiled with exceptions enabled
# the name is relative to $(SRCROOT) and must not contain an extension
$(eval $(call gb_Library_add_exception_objects,LIB,\
))
# in case sdi files need to be processed: declare "root" (main) sdi target and sdi header target
# "ROOT_SDI_FILE" is the file that is handed over to svidl (all other sdi files are included in the root file)
$(eval $(call gb_Library_add_sdi_headers,LIB,MODULE/sdi/ROOT_SDI_FILE))
$(eval $(call gb_SdiTarget_SdiTarget,MODULE/sdi/ROOT_SDI_FILE,MODULE/sdi/LIB))
# add any additional include paths for sdi processing here
$(eval $(call gb_SdiTarget_set_include,MODULE/sdi/ROOT_SDI_FILE,\
$$(INCLUDE) \
))
# this is an example how files can be added that require special compiler settings
ifeq ($(OS),WNT)
$(eval $(call gb_Library_add_cxxobjects,LIB,\
MODULE/source/foo/bar \
, $(gb_LinkTarget_EXCEPTIONFLAGS) -nologo -UPRECOMPILED_HEADERS \
))
endif
# vim: set noet sw=4 ts=4:
solenv/gbuild/templates/Makefile
0 → 100755
Dosyayı görüntüle @
f8d6d56e
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
ifeq
($(strip
$(SOLARENV)),)
$(error
No
environment
set!)
endif
gb_PARTIALBUILD
:=
T
GBUILDDIR
:=
$(SOLARENV)
/gbuild
include
$(GBUILDDIR)/gbuild.mk
$(eval
$(call
gb_Module_make_global_targets,$(shell
ls
$(dir
$(realpath
$(firstword
$(MAKEFILE_LIST))))/Module*.mk)))
# vim: set noet sw=4 ts=4:
solenv/gbuild/templates/Module.mk
0 → 100755
Dosyayı görüntüle @
f8d6d56e
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2009 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
# replace MODULE by the name of the module you are creating
$(eval $(call gb_Module_Module,MODULE))
# the targets to be inserted are their file names without .mk extension
$(eval $(call gb_Module_add_targets,MODULE,\
))
# add any runtime tests (unit tests) here
# remove if no tests
$(eval $(call gb_Module_add_check_targets,MODULE,\
))
# add any subsequent checks (e.g. complex tests) here
$(eval $(call gb_Module_add_subsequentcheck_targets,MODULE,\
))
# vim: set noet sw=4 ts=4:
solenv/gbuild/templates/Package.mk
0 → 100755
Dosyayı görüntüle @
f8d6d56e
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2009 by Sun Microsystems, Inc.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
# MODULE is the name of the module the makefile is located in
# TYPE is an arbitrary name that should denote what is inside this package
# typical names are "inc", "uiconfig", "xml" etc.
# "MODULE_TYPE" is the package name
# the file name of the corresponding makefile should be Package_TYPE.mk
# SOURCE is the name of the root folder of the package that shall be delivered
$(eval $(call gb_Package_Package,MODULE_TYPE,$(SRCDIR)/MODULE/SOURCE))
# add files to the package
# SOURCE_RELPATH/file.ext is the name of the source file (relative to the root give above)
# DESTINATION_RELPATH/file.ext is the destination file (relative to $(OUTDIR))
$(eval $(call gb_Package_add_file,MODULE_TYPE,DESTINATION_RELPATH/file.ext,SOURCE_RELPATH/file.ext))
# vim: set noet sw=4 ts=4:
solenv/gbuild/templates/StaticLibrary.mk
0 → 100755
Dosyayı görüntüle @
f8d6d56e
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
$(eval $(call gb_StaticLibrary_StaticLibrary,LIB))
$(eval $(call gb_StaticLibrary_add_package_headers,LIB,MODULE_inc))
$(eval $(call gb_StaticLibrary_add_exception_objects,LIB,\
))
# vim: set noet sw=4 ts=4:
solenv/gbuild/templates/makefile.mk
0 → 100755
Dosyayı görüntüle @
f8d6d56e
#*************************************************************************
#
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
#
# Copyright 2000, 2010 Oracle and/or its affiliates.
#
# OpenOffice.org - a multi-platform office productivity suite
#
# This file is part of OpenOffice.org.
#
# OpenOffice.org is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License version 3
# only, as published by the Free Software Foundation.
#
# OpenOffice.org is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License version 3 for more details
# (a copy is included in the LICENSE file that accompanied this code).
#
# You should have received a copy of the GNU Lesser General Public License
# version 3 along with OpenOffice.org. If not, see
# <http://www.openoffice.org/license.html>
# for a copy of the LGPLv3 License.
#
#*************************************************************************
PRJ
=
..
TARGET
=
prj
.INCLUDE
:
settings.mk
.IF
"$(VERBOSE)"
!=
""
VERBOSEFLAG
:=
.ELSE
VERBOSEFLAG
:=
-s
.ENDIF
all
:
cd
$(PRJ)
&&
$(GNUMAKE)
$(VERBOSEFLAG)
-r
-j$(MAXPROCESS)
$(gb_MAKETARGET)
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