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
24c66413
Kaydet (Commit)
24c66413
authored
Eyl 14, 2012
tarafından
Tor Lillqvist
Kaydeden (comit)
Tor Lillqvist
Eyl 14, 2012
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Adapt for DISABLE_DYNLOADING possibility also for Android
Change-Id: Iecc8c35b5b2235bc3408f2ecf3969317ac8bf679
üst
085446cf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
31 additions
and
27 deletions
+31
-27
disable-dynloading.patch
cppunit/disable-dynloading.patch
+25
-0
ios.patch
cppunit/ios.patch
+0
-25
makefile.mk
cppunit/makefile.mk
+6
-2
No files found.
cppunit/disable-dynloading.patch
0 → 100644
Dosyayı görüntüle @
24c66413
--- misc/build/cppunit-1.13.0/include/cppunit/plugin/TestPlugIn.h
+++ misc/build/cppunit-1.13.0/include/cppunit/plugin/TestPlugIn.h
@@ -106,7 +106,9 @@
* CppUnitTestPlugIn *CPPUNIT_PLUGIN_EXPORTED_NAME(void);
* \endcode
*/
+#ifndef CPPUNIT_PLUGIN_EXPORTED_NAME
#define CPPUNIT_PLUGIN_EXPORTED_NAME cppunitTestPlugIn
+#endif
/*! \brief Type of the function exported by a plug-in.
* \ingroup WritingTestPlugIn
@@ -143,6 +143,12 @@
#define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \
typedef char __CppUnitPlugInImplementMainDummyTypeDef
+// Actually this is for iOS and Android where we build the cppunit tests libraries
+// as plain archives and just link them statically into test fixture programs,
+// and don't want any stinking duplicate main(), but shouldn't hurt for MacOSX either.
+#elif defined(__APPLE__) || defined(__ANDROID__)
+#define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \
+ typedef char __CppUnitPlugInImplementMainDummyTypeDef
// Unix
#elif defined(CPPUNIT_HAVE_UNIX_DLL_LOADER) || defined(CPPUNIT_HAVE_UNIX_SHL_LOADER)
#define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \
cppunit/ios.patch
Dosyayı görüntüle @
24c66413
...
...
@@ -16,28 +16,3 @@
- rm -f conftest.*
+ rm -f -r conftest.*
fi
--- misc/build/cppunit-1.13.0/include/cppunit/plugin/TestPlugIn.h
+++ misc/build/cppunit-1.13.0/include/cppunit/plugin/TestPlugIn.h
@@ -106,7 +106,9 @@
* CppUnitTestPlugIn *CPPUNIT_PLUGIN_EXPORTED_NAME(void);
* \endcode
*/
+#ifndef CPPUNIT_PLUGIN_EXPORTED_NAME
#define CPPUNIT_PLUGIN_EXPORTED_NAME cppunitTestPlugIn
+#endif
/*! \brief Type of the function exported by a plug-in.
* \ingroup WritingTestPlugIn
@@ -143,6 +143,12 @@
#define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \
typedef char __CppUnitPlugInImplementMainDummyTypeDef
+// Actually this is for iOS where we build the cppunit tests libraries
+// as plain archives and just link them statically into test fixture programs,
+// and don't want any stinking duplicate main(), but shouldn't hurt for MacOSX either.
+#elif defined(__APPLE__)
+#define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \
+ typedef char __CppUnitPlugInImplementMainDummyTypeDef
// Unix
#elif defined(CPPUNIT_HAVE_UNIX_DLL_LOADER) || defined(CPPUNIT_HAVE_UNIX_SHL_LOADER)
#define CPPUNIT_PLUGIN_IMPLEMENT_MAIN() \
cppunit/makefile.mk
Dosyayı görüntüle @
24c66413
...
...
@@ -42,6 +42,10 @@ PATCH_FILES += android.patch
PATCH_FILES
+=
ios.patch
.ENDIF
.IF
"$(DISABLE_DYNLOADING)"
==
"TRUE"
PATCH_FILES
+=
disable-dynloading.patch
.ENDIF
.IF
"$(OS)"
==
"WNT"
.IF
"$(COM)"
==
"MSC"
...
...
@@ -148,7 +152,7 @@ CONFIGURE_FLAGS = --prefix=$(shell cd $(PACKAGE_DIR) && \
LDFLAGS
=
'
$(LDFLAGS)
'
\
LIBS
=
'
$(MY_LIBS)
'
.IF
"$(
OS)"
==
"IOS
"
.IF
"$(
DISABLE_DYNLOADING)"
==
"TRUE
"
CONFIGURE_FLAGS
+=
--disable-shared
.ELSE
CONFIGURE_FLAGS
+=
--disable-static
...
...
@@ -173,7 +177,7 @@ PACKAGE_DIR = \
OUT2LIB
=
ooo-install/lib/libcppunit-1.13.a
.ELIF
"$(OS)"
==
"OPENBSD"
OUT2LIB
=
ooo-install/lib/libcppunit-1.13.so.0.0
.ELIF
"$(
OS)"
==
"IOS
"
.ELIF
"$(
DISABLE_DYNLOADING)"
==
"TRUE
"
OUT2LIB
=
ooo-install/lib/libcppunit.a
.ELIF
"$(OS)"
==
"ANDROID"
OUT2LIB
=
ooo-install/lib/libcppunit-1.13.so
...
...
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