Tests: Port GenerateExportHeader test to RunCMake infrastructure

This will allow build failure cases to be added later.
This commit is contained in:
Brad King
2016-09-01 15:22:05 -04:00
parent 4feba34d02
commit fc3dab0ea9
41 changed files with 27 additions and 2 deletions

View File

@@ -1,139 +0,0 @@
cmake_minimum_required(VERSION 2.8.5 FATAL_ERROR)
cmake_policy(SET CMP0054 NEW)
project(GenerateExportHeader)
# Prevent timeout on Watcom by not running the tests.
if ("${CMAKE_CXX_COMPILER_ID}" MATCHES Watcom)
file(WRITE
"${CMAKE_CURRENT_BINARY_DIR}/main.cxx"
"int main() { return 0; }
"
)
add_executable(
GenerateExportHeader
"${CMAKE_CURRENT_BINARY_DIR}/main.cxx"
)
return()
endif()
include(CheckCXXCompilerFlag)
set( CMAKE_INCLUDE_CURRENT_DIR ON )
macro(TEST_FAIL value msg)
if (${value})
message (SEND_ERROR "Test fail:" "${msg}\n" ${Out} )
endif ()
endmacro()
macro(TEST_PASS value msg)
if (NOT ${value})
message (SEND_ERROR "Test fail:" "${msg}\n" ${Out} )
endif ()
endmacro()
check_cxx_compiler_flag(-Werror HAS_WERROR_FLAG)
if(HAS_WERROR_FLAG)
set(ERROR_FLAG "-Werror")
else()
# MSVC
# And intel on windows?
# http://software.intel.com/en-us/articles/how-to-handle-warnings-message-in-compiler/?wapkw=%28compiler+warning+message%29
check_cxx_compiler_flag("/WX" HAS_WX_FLAG)
if(HAS_WX_FLAG)
set(ERROR_FLAG "/WX")
else()
# Sun CC
# http://www.acsu.buffalo.edu/~charngda/sunstudio.html
check_cxx_compiler_flag("-errwarn=%all" HAS_ERRWARN_ALL)
if (HAS_ERRWARN_ALL)
set(ERROR_FLAG "-errwarn=%all")
else()
endif()
endif()
endif()
include(GenerateExportHeader)
set(CMAKE_CXX_STANDARD 98)
# Those versions of the HP compiler that need a flag to get proper C++98
# template support also need a flag to use the newer C++ library.
if (CMAKE_CXX_COMPILER_ID STREQUAL HP AND
CMAKE_CXX98_STANDARD_COMPILE_OPTION STREQUAL "+hpxstd98")
string(APPEND CMAKE_CXX_FLAGS " -AA")
endif ()
# Clang/C2 in C++98 mode cannot properly handle some of MSVC headers
if (CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND
CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")
set(CMAKE_CXX_STANDARD 11)
endif()
add_subdirectory(lib_shared_and_static)
add_compiler_export_flags()
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR})
message("#### COMPILER_HAS_DEPRECATED: " ${COMPILER_HAS_DEPRECATED})
message("#### COMPILER_HAS_HIDDEN_VISIBILITY: " ${COMPILER_HAS_HIDDEN_VISIBILITY})
message("#### WIN32: " ${WIN32})
message("#### HAS_WERROR_FLAG: " ${HAS_WERROR_FLAG})
set(link_libraries)
macro(macro_add_test_library name)
add_subdirectory(${name})
include_directories(${name}
${${name}_BINARY_DIR} # For the export header.
)
list(APPEND link_libraries ${name})
endmacro()
macro_add_test_library(libshared)
macro_add_test_library(libstatic)
add_subdirectory(nodeprecated)
if(NOT BORLAND)
add_subdirectory(c_identifier)
endif()
if (CMAKE_COMPILER_IS_GNUCXX OR (${CMAKE_CXX_COMPILER_ID} MATCHES Clang))
# No need to clutter the test output with warnings.
string(APPEND CMAKE_CXX_FLAGS " -Wno-deprecated-declarations")
endif()
if(MSVC AND COMPILER_HAS_DEPRECATED)
add_definitions(/wd4996)
endif()
add_executable(GenerateExportHeader exportheader_test.cpp)
target_link_libraries(GenerateExportHeader ${link_libraries})
if (WIN32 OR CYGWIN)
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang" AND
CMAKE_CXX_SIMULATE_ID STREQUAL "MSVC")
set(_platform Win32-Clang)
elseif(MSVC AND COMPILER_HAS_DEPRECATED)
set(_platform Win32)
elseif((MINGW OR CYGWIN) AND COMPILER_HAS_DEPRECATED)
set(_platform MinGW)
else()
set(_platform WinEmpty)
endif()
elseif(COMPILER_HAS_HIDDEN_VISIBILITY AND USE_COMPILER_HIDDEN_VISIBILITY)
set(_platform UNIX)
elseif(COMPILER_HAS_DEPRECATED)
set(_platform UNIX_DeprecatedOnly)
else()
set(_platform Empty)
endif()
message("#### Testing reference: ${_platform}")
target_compile_definitions(GenerateExportHeader
PRIVATE
"SRC_DIR=\"${CMAKE_CURRENT_SOURCE_DIR}/reference/${_platform}\""
"BIN_DIR=\"${CMAKE_CURRENT_BINARY_DIR}\""
)

View File

@@ -1,13 +0,0 @@
project(c_identifier)
set(c_identifier_lib_SRCS
c_identifier_class.cpp
)
add_library(7c-identifier-lib++ SHARED c_identifier_class.cpp)
generate_export_header(7c-identifier-lib++)
add_executable(c_identifier_exe main.cpp)
target_link_libraries(c_identifier_exe 7c-identifier-lib++)

View File

@@ -1,7 +0,0 @@
#include "c_identifier_class.h"
int CIdentifierClass::someMethod() const
{
return 0;
}

View File

@@ -1,13 +0,0 @@
#ifndef C_IDENTIFIER_CLASS_H
#define C_IDENTIFIER_CLASS_H
#include "7c-identifier-lib++_export.h"
class _7C_IDENTIFIER_LIB___EXPORT CIdentifierClass
{
public:
int someMethod() const;
};
#endif

View File

@@ -1,8 +0,0 @@
#include "c_identifier_class.h"
int main(int argc, char** argv)
{
CIdentifierClass cic;
return cic.someMethod();
}

View File

@@ -1,137 +0,0 @@
#include "libshared.h"
#include "libstatic.h"
// #define BUILD_FAIL
#ifndef BUILD_FAIL
#define DOES_NOT_BUILD(function)
#else
#define DOES_NOT_BUILD(function) function
#endif
#include <fstream>
#include <iostream>
#include <stdlib.h>
#include <string>
void compare(const char* refName, const char* testName)
{
std::ifstream ref;
ref.open(refName);
if (!ref.is_open()) {
std::cout << "Could not open \"" << refName << "\"." << std::endl;
exit(1);
}
std::ifstream test;
test.open(testName);
if (!test.is_open()) {
std::cout << "Could not open \"" << testName << "\"." << std::endl;
exit(1);
}
while (!ref.eof() && !test.eof()) {
std::string refLine;
std::string testLine;
std::getline(ref, refLine);
std::getline(test, testLine);
// Some very old Borland runtimes (C++ Builder 5 WITHOUT Update 1) add a
// trailing null to the string that we need to strip before testing for a
// trailing space.
if (refLine.size() && refLine[refLine.size() - 1] == 0) {
refLine = refLine.substr(0, refLine.size() - 1);
}
if (testLine.size() && testLine[testLine.size() - 1] == 0) {
testLine = testLine.substr(0, testLine.size() - 1);
}
// The reference files never have trailing spaces:
if (testLine.size() && testLine[testLine.size() - 1] == ' ') {
testLine = testLine.substr(0, testLine.size() - 1);
}
if (refLine != testLine) {
std::cout << "Ref and test are not the same:\n Ref: \"" << refLine
<< "\"\n Test: \"" << testLine << "\"\n";
exit(1);
}
}
if (!ref.eof() || !test.eof()) {
std::cout << "Ref and test have differing numbers of lines.";
exit(1);
}
}
int main()
{
{
Libshared l;
l.libshared();
l.libshared_exported();
l.libshared_deprecated();
l.libshared_not_exported();
DOES_NOT_BUILD(l.libshared_excluded();)
}
{
LibsharedNotExported l;
DOES_NOT_BUILD(l.libshared();)
l.libshared_exported();
l.libshared_deprecated();
DOES_NOT_BUILD(l.libshared_not_exported();)
DOES_NOT_BUILD(l.libshared_excluded();)
}
{
LibsharedExcluded l;
DOES_NOT_BUILD(l.libshared();)
l.libshared_exported();
l.libshared_deprecated();
DOES_NOT_BUILD(l.libshared_not_exported();)
DOES_NOT_BUILD(l.libshared_excluded();)
}
libshared_exported();
libshared_deprecated();
DOES_NOT_BUILD(libshared_not_exported();)
DOES_NOT_BUILD(libshared_excluded();)
{
Libstatic l;
l.libstatic();
l.libstatic_exported();
l.libstatic_deprecated();
l.libstatic_not_exported();
l.libstatic_excluded();
}
{
LibstaticNotExported l;
l.libstatic();
l.libstatic_exported();
l.libstatic_deprecated();
l.libstatic_not_exported();
l.libstatic_excluded();
}
{
LibstaticExcluded l;
l.libstatic();
l.libstatic_exported();
l.libstatic_deprecated();
l.libstatic_not_exported();
l.libstatic_excluded();
}
libstatic_exported();
libstatic_deprecated();
libstatic_not_exported();
libstatic_excluded();
compare(SRC_DIR "/libshared_export.h",
BIN_DIR "/libshared/libshared_export.h");
compare(SRC_DIR "/libstatic_export.h",
BIN_DIR "/libstatic/libstatic_export.h");
return 0;
}

View File

@@ -1,38 +0,0 @@
cmake_minimum_required(VERSION 2.8)
project(lib_shared_and_static)
include(GenerateExportHeader)
set(CMAKE_CXX_VISIBILITY_PRESET hidden)
set(CMAKE_VISIBILITY_INLINES_HIDDEN 1)
if (CMAKE_CXX_FLAGS MATCHES "-fvisibility=hidden")
message(SEND_ERROR "Do not use add_compiler_export_flags before adding this directory")
endif()
if (CMAKE_CXX_FLAGS MATCHES "-fvisibility-inlines-hidden")
message(SEND_ERROR "Do not use add_compiler_export_flags before adding this directory")
endif()
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(lib_SRCS
libshared_and_static.cpp
)
add_library(shared_variant SHARED ${lib_SRCS})
set_target_properties(shared_variant PROPERTIES DEFINE_SYMBOL SHARED_VARIANT_MAKEDLL)
add_library(static_variant ${lib_SRCS})
set(MY_CUSTOM_CONTENT "#define MY_CUSTOM_CONTENT_ADDED")
generate_export_header(shared_variant
BASE_NAME libshared_and_static
PREFIX_NAME MYPREFIX_
CUSTOM_CONTENT_FROM_VARIABLE MY_CUSTOM_CONTENT
)
set_target_properties(static_variant PROPERTIES COMPILE_FLAGS -DLIBSHARED_AND_STATIC_STATIC_DEFINE)
export(TARGETS shared_variant static_variant FILE Targets.cmake)

View File

@@ -1,106 +0,0 @@
#include "libshared_and_static.h"
#ifndef MY_CUSTOM_CONTENT_ADDED
#error "MY_CUSTOM_CONTENT_ADDED not defined!"
#endif
int LibsharedAndStatic::libshared_and_static() const
{
return 0;
}
int LibsharedAndStatic::libshared_and_static_exported() const
{
return 0;
}
int LibsharedAndStatic::libshared_and_static_deprecated() const
{
return 0;
}
int LibsharedAndStatic::libshared_and_static_not_exported() const
{
return 0;
}
int LibsharedAndStatic::libshared_and_static_excluded() const
{
return 0;
}
int LibsharedAndStaticNotExported::libshared_and_static() const
{
return 0;
}
int LibsharedAndStaticNotExported::libshared_and_static_exported() const
{
return 0;
}
int LibsharedAndStaticNotExported::libshared_and_static_deprecated() const
{
return 0;
}
int LibsharedAndStaticNotExported::libshared_and_static_not_exported() const
{
return 0;
}
int LibsharedAndStaticNotExported::libshared_and_static_excluded() const
{
return 0;
}
int LibsharedAndStaticExcluded::libshared_and_static() const
{
return 0;
}
int LibsharedAndStaticExcluded::libshared_and_static_exported() const
{
return 0;
}
int LibsharedAndStaticExcluded::libshared_and_static_deprecated() const
{
return 0;
}
int LibsharedAndStaticExcluded::libshared_and_static_not_exported() const
{
return 0;
}
int LibsharedAndStaticExcluded::libshared_and_static_excluded() const
{
return 0;
}
int libshared_and_static()
{
return 0;
}
int libshared_and_static_exported()
{
return 0;
}
int libshared_and_static_deprecated()
{
return 0;
}
int libshared_and_static_not_exported()
{
return 0;
}
int libshared_and_static_excluded()
{
return 0;
}

View File

@@ -1,66 +0,0 @@
#ifndef SHARED_AND_STATIC_H
#define SHARED_AND_STATIC_H
#include "libshared_and_static_export.h"
class MYPREFIX_LIBSHARED_AND_STATIC_EXPORT LibsharedAndStatic
{
public:
int libshared_and_static() const;
int libshared_and_static_exported() const;
int MYPREFIX_LIBSHARED_AND_STATIC_DEPRECATED
libshared_and_static_deprecated() const;
int libshared_and_static_not_exported() const;
int MYPREFIX_LIBSHARED_AND_STATIC_NO_EXPORT
libshared_and_static_excluded() const;
};
class LibsharedAndStaticNotExported
{
public:
int libshared_and_static() const;
int MYPREFIX_LIBSHARED_AND_STATIC_EXPORT
libshared_and_static_exported() const;
int MYPREFIX_LIBSHARED_AND_STATIC_DEPRECATED
libshared_and_static_deprecated() const;
int libshared_and_static_not_exported() const;
int MYPREFIX_LIBSHARED_AND_STATIC_NO_EXPORT
libshared_and_static_excluded() const;
};
class MYPREFIX_LIBSHARED_AND_STATIC_NO_EXPORT LibsharedAndStaticExcluded
{
public:
int libshared_and_static() const;
int MYPREFIX_LIBSHARED_AND_STATIC_EXPORT
libshared_and_static_exported() const;
int MYPREFIX_LIBSHARED_AND_STATIC_DEPRECATED
libshared_and_static_deprecated() const;
int libshared_and_static_not_exported() const;
int MYPREFIX_LIBSHARED_AND_STATIC_NO_EXPORT
libshared_and_static_excluded() const;
};
MYPREFIX_LIBSHARED_AND_STATIC_EXPORT int libshared_and_static_exported();
MYPREFIX_LIBSHARED_AND_STATIC_DEPRECATED_EXPORT int
libshared_and_static_deprecated();
int libshared_and_static_not_exported();
int MYPREFIX_LIBSHARED_AND_STATIC_NO_EXPORT libshared_and_static_excluded();
#endif

View File

@@ -1,16 +0,0 @@
cmake_minimum_required(VERSION 2.8)
project(libshared)
include(GenerateExportHeader)
add_compiler_export_flags()
set(CMAKE_INCLUDE_CURRENT_DIR ON)
add_library(libshared SHARED libshared.cpp)
generate_export_header(libshared)
export(TARGETS libshared FILE Targets.cmake)

View File

@@ -1,102 +0,0 @@
#include "libshared.h"
int Libshared::libshared() const
{
return 0;
}
int Libshared::libshared_exported() const
{
return 0;
}
int Libshared::libshared_deprecated() const
{
return 0;
}
int Libshared::libshared_not_exported() const
{
return 0;
}
int Libshared::libshared_excluded() const
{
return 0;
}
int LibsharedNotExported::libshared() const
{
return 0;
}
int LibsharedNotExported::libshared_exported() const
{
return 0;
}
int LibsharedNotExported::libshared_deprecated() const
{
return 0;
}
int LibsharedNotExported::libshared_not_exported() const
{
return 0;
}
int LibsharedNotExported::libshared_excluded() const
{
return 0;
}
int LibsharedExcluded::libshared() const
{
return 0;
}
int LibsharedExcluded::libshared_exported() const
{
return 0;
}
int LibsharedExcluded::libshared_deprecated() const
{
return 0;
}
int LibsharedExcluded::libshared_not_exported() const
{
return 0;
}
int LibsharedExcluded::libshared_excluded() const
{
return 0;
}
int libshared()
{
return 0;
}
int libshared_exported()
{
return 0;
}
int libshared_deprecated()
{
return 0;
}
int libshared_not_exported()
{
return 0;
}
int libshared_excluded()
{
return 0;
}

View File

@@ -1,57 +0,0 @@
#ifndef LIBSHARED_H
#define LIBSHARED_H
#include "libshared_export.h"
class LIBSHARED_EXPORT Libshared
{
public:
int libshared() const;
int libshared_exported() const;
int LIBSHARED_DEPRECATED libshared_deprecated() const;
int libshared_not_exported() const;
int LIBSHARED_NO_EXPORT libshared_excluded() const;
};
class LibsharedNotExported
{
public:
int libshared() const;
int LIBSHARED_EXPORT libshared_exported() const;
int LIBSHARED_DEPRECATED_EXPORT libshared_deprecated() const;
int libshared_not_exported() const;
int LIBSHARED_NO_EXPORT libshared_excluded() const;
};
class LIBSHARED_NO_EXPORT LibsharedExcluded
{
public:
int libshared() const;
int LIBSHARED_EXPORT libshared_exported() const;
int LIBSHARED_DEPRECATED_EXPORT libshared_deprecated() const;
int libshared_not_exported() const;
int LIBSHARED_NO_EXPORT libshared_excluded() const;
};
LIBSHARED_EXPORT int libshared_exported();
LIBSHARED_DEPRECATED_EXPORT int libshared_deprecated();
int libshared_not_exported();
int LIBSHARED_NO_EXPORT libshared_excluded();
#endif

View File

@@ -1,18 +0,0 @@
cmake_minimum_required(VERSION 2.8)
project(libstatic)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include(GenerateExportHeader)
add_compiler_export_flags()
# Show that the export header has no effect on a static library.
add_library(libstatic STATIC libstatic.cpp)
generate_export_header(libstatic)
export(TARGETS libstatic FILE Targets.cmake)

View File

@@ -1,97 +0,0 @@
#include "libstatic.h"
int Libstatic::libstatic() const
{
return 0;
}
int Libstatic::libstatic_exported() const
{
return 0;
}
int Libstatic::libstatic_deprecated() const
{
return 0;
}
int Libstatic::libstatic_not_exported() const
{
return 0;
}
int Libstatic::libstatic_excluded() const
{
return 0;
}
int LibstaticNotExported::libstatic() const
{
return 0;
}
int LibstaticNotExported::libstatic_exported() const
{
return 0;
}
int LibstaticNotExported::libstatic_deprecated() const
{
return 0;
}
int LibstaticNotExported::libstatic_not_exported() const
{
return 0;
}
int LibstaticNotExported::libstatic_excluded() const
{
return 0;
}
int LibstaticExcluded::libstatic() const
{
return 0;
}
int LibstaticExcluded::libstatic_exported() const
{
return 0;
}
int LibstaticExcluded::libstatic_deprecated() const
{
return 0;
}
int LibstaticExcluded::libstatic_not_exported() const
{
return 0;
}
int LibstaticExcluded::libstatic_excluded() const
{
return 0;
}
int libstatic_exported()
{
return 0;
}
int libstatic_deprecated()
{
return 0;
}
int libstatic_not_exported()
{
return 0;
}
int libstatic_excluded()
{
return 0;
}

View File

@@ -1,57 +0,0 @@
#ifndef LIBSTATIC_H
#define LIBSTATIC_H
#include "libstatic_export.h"
class LIBSTATIC_EXPORT Libstatic
{
public:
int libstatic() const;
int libstatic_exported() const;
int LIBSTATIC_DEPRECATED libstatic_deprecated() const;
int libstatic_not_exported() const;
int LIBSTATIC_NO_EXPORT libstatic_excluded() const;
};
class LibstaticNotExported
{
public:
int libstatic() const;
int LIBSTATIC_EXPORT libstatic_exported() const;
int LIBSTATIC_DEPRECATED libstatic_deprecated() const;
int libstatic_not_exported() const;
int LIBSTATIC_NO_EXPORT libstatic_excluded() const;
};
class LIBSTATIC_NO_EXPORT LibstaticExcluded
{
public:
int libstatic() const;
int LIBSTATIC_EXPORT libstatic_exported() const;
int LIBSTATIC_DEPRECATED libstatic_deprecated() const;
int libstatic_not_exported() const;
int LIBSTATIC_NO_EXPORT libstatic_excluded() const;
};
LIBSTATIC_EXPORT int libstatic_exported();
LIBSTATIC_DEPRECATED_EXPORT int libstatic_deprecated();
int libstatic_not_exported();
int LIBSTATIC_NO_EXPORT libstatic_excluded();
#endif

View File

@@ -1,26 +0,0 @@
cmake_minimum_required(VERSION 2.8)
project(nodeprecated)
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/nodeprecated_defined)
execute_process(COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_CURRENT_SOURCE_DIR}/src ${CMAKE_CURRENT_BINARY_DIR}/nodeprecated_not_defined)
configure_file(CMakeLists.txt.in ${CMAKE_CURRENT_BINARY_DIR}/nodeprecated_not_defined/CMakeLists.txt)
set(DEFINE_NO_DEPRECATED DEFINE_NO_DEPRECATED)
configure_file(CMakeLists.txt.in ${CMAKE_CURRENT_BINARY_DIR}/nodeprecated_defined/CMakeLists.txt)
try_compile(Result ${CMAKE_CURRENT_BINARY_DIR}/nodeprecated_not_defined_build
${CMAKE_CURRENT_BINARY_DIR}/nodeprecated_not_defined
nodeprecated_test
OUTPUT_VARIABLE Out
)
test_pass(Result "Failed to build without no-deprecated define")
try_compile(Result ${CMAKE_CURRENT_BINARY_DIR}/nodeprecated_defined_build
${CMAKE_CURRENT_BINARY_DIR}/nodeprecated_defined
nodeprecated_test
OUTPUT_VARIABLE Out
)
test_fail(Result "Built even with no-deprecated define")

View File

@@ -1,15 +0,0 @@
cmake_minimum_required(VERSION 2.8)
project(nodeprecated_test)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
include(GenerateExportHeader)
add_library(nodeprecatedlib SHARED someclass.cpp)
generate_export_header(nodeprecatedlib @DEFINE_NO_DEPRECATED@)
add_executable(nodeprecatedconsumer main.cpp)
target_link_libraries(nodeprecatedconsumer nodeprecatedlib)

View File

@@ -1,9 +0,0 @@
#include "someclass.h"
int main(int, char**)
{
SomeClass sc;
sc.someMethod();
return 0;
}

View File

@@ -1,8 +0,0 @@
#include "someclass.h"
#ifndef NODEPRECATEDLIB_NO_DEPRECATED
void SomeClass::someMethod() const
{
}
#endif

View File

@@ -1,10 +0,0 @@
#include "nodeprecatedlib_export.h"
class NODEPRECATEDLIB_EXPORT SomeClass
{
public:
#ifndef NODEPRECATEDLIB_NO_DEPRECATED
void someMethod() const;
#endif
};

View File

@@ -1,42 +0,0 @@
#ifndef LIBSHARED_EXPORT_H
#define LIBSHARED_EXPORT_H
#ifdef LIBSHARED_STATIC_DEFINE
# define LIBSHARED_EXPORT
# define LIBSHARED_NO_EXPORT
#else
# ifndef LIBSHARED_EXPORT
# ifdef libshared_EXPORTS
/* We are building this library */
# define LIBSHARED_EXPORT
# else
/* We are using this library */
# define LIBSHARED_EXPORT
# endif
# endif
# ifndef LIBSHARED_NO_EXPORT
# define LIBSHARED_NO_EXPORT
# endif
#endif
#ifndef LIBSHARED_DEPRECATED
# define LIBSHARED_DEPRECATED
#endif
#ifndef LIBSHARED_DEPRECATED_EXPORT
# define LIBSHARED_DEPRECATED_EXPORT LIBSHARED_EXPORT LIBSHARED_DEPRECATED
#endif
#ifndef LIBSHARED_DEPRECATED_NO_EXPORT
# define LIBSHARED_DEPRECATED_NO_EXPORT LIBSHARED_NO_EXPORT LIBSHARED_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSHARED_NO_DEPRECATED
# define LIBSHARED_NO_DEPRECATED
# endif
#endif
#endif

View File

@@ -1,42 +0,0 @@
#ifndef LIBSTATIC_EXPORT_H
#define LIBSTATIC_EXPORT_H
#ifdef LIBSTATIC_STATIC_DEFINE
# define LIBSTATIC_EXPORT
# define LIBSTATIC_NO_EXPORT
#else
# ifndef LIBSTATIC_EXPORT
# ifdef libstatic_EXPORTS
/* We are building this library */
# define LIBSTATIC_EXPORT
# else
/* We are using this library */
# define LIBSTATIC_EXPORT
# endif
# endif
# ifndef LIBSTATIC_NO_EXPORT
# define LIBSTATIC_NO_EXPORT
# endif
#endif
#ifndef LIBSTATIC_DEPRECATED
# define LIBSTATIC_DEPRECATED
#endif
#ifndef LIBSTATIC_DEPRECATED_EXPORT
# define LIBSTATIC_DEPRECATED_EXPORT LIBSTATIC_EXPORT LIBSTATIC_DEPRECATED
#endif
#ifndef LIBSTATIC_DEPRECATED_NO_EXPORT
# define LIBSTATIC_DEPRECATED_NO_EXPORT LIBSTATIC_NO_EXPORT LIBSTATIC_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSTATIC_NO_DEPRECATED
# define LIBSTATIC_NO_DEPRECATED
# endif
#endif
#endif

View File

@@ -1,42 +0,0 @@
#ifndef LIBSHARED_EXPORT_H
#define LIBSHARED_EXPORT_H
#ifdef LIBSHARED_STATIC_DEFINE
# define LIBSHARED_EXPORT
# define LIBSHARED_NO_EXPORT
#else
# ifndef LIBSHARED_EXPORT
# ifdef libshared_EXPORTS
/* We are building this library */
# define LIBSHARED_EXPORT __declspec(dllexport)
# else
/* We are using this library */
# define LIBSHARED_EXPORT __declspec(dllimport)
# endif
# endif
# ifndef LIBSHARED_NO_EXPORT
# define LIBSHARED_NO_EXPORT
# endif
#endif
#ifndef LIBSHARED_DEPRECATED
# define LIBSHARED_DEPRECATED __attribute__ ((__deprecated__))
#endif
#ifndef LIBSHARED_DEPRECATED_EXPORT
# define LIBSHARED_DEPRECATED_EXPORT LIBSHARED_EXPORT LIBSHARED_DEPRECATED
#endif
#ifndef LIBSHARED_DEPRECATED_NO_EXPORT
# define LIBSHARED_DEPRECATED_NO_EXPORT LIBSHARED_NO_EXPORT LIBSHARED_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSHARED_NO_DEPRECATED
# define LIBSHARED_NO_DEPRECATED
# endif
#endif
#endif

View File

@@ -1,42 +0,0 @@
#ifndef LIBSTATIC_EXPORT_H
#define LIBSTATIC_EXPORT_H
#ifdef LIBSTATIC_STATIC_DEFINE
# define LIBSTATIC_EXPORT
# define LIBSTATIC_NO_EXPORT
#else
# ifndef LIBSTATIC_EXPORT
# ifdef libstatic_EXPORTS
/* We are building this library */
# define LIBSTATIC_EXPORT
# else
/* We are using this library */
# define LIBSTATIC_EXPORT
# endif
# endif
# ifndef LIBSTATIC_NO_EXPORT
# define LIBSTATIC_NO_EXPORT
# endif
#endif
#ifndef LIBSTATIC_DEPRECATED
# define LIBSTATIC_DEPRECATED __attribute__ ((__deprecated__))
#endif
#ifndef LIBSTATIC_DEPRECATED_EXPORT
# define LIBSTATIC_DEPRECATED_EXPORT LIBSTATIC_EXPORT LIBSTATIC_DEPRECATED
#endif
#ifndef LIBSTATIC_DEPRECATED_NO_EXPORT
# define LIBSTATIC_DEPRECATED_NO_EXPORT LIBSTATIC_NO_EXPORT LIBSTATIC_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSTATIC_NO_DEPRECATED
# define LIBSTATIC_NO_DEPRECATED
# endif
#endif
#endif

View File

@@ -1,42 +0,0 @@
#ifndef LIBSHARED_EXPORT_H
#define LIBSHARED_EXPORT_H
#ifdef LIBSHARED_STATIC_DEFINE
# define LIBSHARED_EXPORT
# define LIBSHARED_NO_EXPORT
#else
# ifndef LIBSHARED_EXPORT
# ifdef libshared_EXPORTS
/* We are building this library */
# define LIBSHARED_EXPORT __attribute__((visibility("default")))
# else
/* We are using this library */
# define LIBSHARED_EXPORT __attribute__((visibility("default")))
# endif
# endif
# ifndef LIBSHARED_NO_EXPORT
# define LIBSHARED_NO_EXPORT __attribute__((visibility("hidden")))
# endif
#endif
#ifndef LIBSHARED_DEPRECATED
# define LIBSHARED_DEPRECATED __attribute__ ((__deprecated__))
#endif
#ifndef LIBSHARED_DEPRECATED_EXPORT
# define LIBSHARED_DEPRECATED_EXPORT LIBSHARED_EXPORT LIBSHARED_DEPRECATED
#endif
#ifndef LIBSHARED_DEPRECATED_NO_EXPORT
# define LIBSHARED_DEPRECATED_NO_EXPORT LIBSHARED_NO_EXPORT LIBSHARED_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSHARED_NO_DEPRECATED
# define LIBSHARED_NO_DEPRECATED
# endif
#endif
#endif

View File

@@ -1,42 +0,0 @@
#ifndef LIBSTATIC_EXPORT_H
#define LIBSTATIC_EXPORT_H
#ifdef LIBSTATIC_STATIC_DEFINE
# define LIBSTATIC_EXPORT
# define LIBSTATIC_NO_EXPORT
#else
# ifndef LIBSTATIC_EXPORT
# ifdef libstatic_EXPORTS
/* We are building this library */
# define LIBSTATIC_EXPORT
# else
/* We are using this library */
# define LIBSTATIC_EXPORT
# endif
# endif
# ifndef LIBSTATIC_NO_EXPORT
# define LIBSTATIC_NO_EXPORT
# endif
#endif
#ifndef LIBSTATIC_DEPRECATED
# define LIBSTATIC_DEPRECATED __attribute__ ((__deprecated__))
#endif
#ifndef LIBSTATIC_DEPRECATED_EXPORT
# define LIBSTATIC_DEPRECATED_EXPORT LIBSTATIC_EXPORT LIBSTATIC_DEPRECATED
#endif
#ifndef LIBSTATIC_DEPRECATED_NO_EXPORT
# define LIBSTATIC_DEPRECATED_NO_EXPORT LIBSTATIC_NO_EXPORT LIBSTATIC_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSTATIC_NO_DEPRECATED
# define LIBSTATIC_NO_DEPRECATED
# endif
#endif
#endif

View File

@@ -1,42 +0,0 @@
#ifndef LIBSHARED_EXPORT_H
#define LIBSHARED_EXPORT_H
#ifdef LIBSHARED_STATIC_DEFINE
# define LIBSHARED_EXPORT
# define LIBSHARED_NO_EXPORT
#else
# ifndef LIBSHARED_EXPORT
# ifdef libshared_EXPORTS
/* We are building this library */
# define LIBSHARED_EXPORT
# else
/* We are using this library */
# define LIBSHARED_EXPORT
# endif
# endif
# ifndef LIBSHARED_NO_EXPORT
# define LIBSHARED_NO_EXPORT
# endif
#endif
#ifndef LIBSHARED_DEPRECATED
# define LIBSHARED_DEPRECATED __attribute__ ((__deprecated__))
#endif
#ifndef LIBSHARED_DEPRECATED_EXPORT
# define LIBSHARED_DEPRECATED_EXPORT LIBSHARED_EXPORT LIBSHARED_DEPRECATED
#endif
#ifndef LIBSHARED_DEPRECATED_NO_EXPORT
# define LIBSHARED_DEPRECATED_NO_EXPORT LIBSHARED_NO_EXPORT LIBSHARED_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSHARED_NO_DEPRECATED
# define LIBSHARED_NO_DEPRECATED
# endif
#endif
#endif

View File

@@ -1,42 +0,0 @@
#ifndef LIBSTATIC_EXPORT_H
#define LIBSTATIC_EXPORT_H
#ifdef LIBSTATIC_STATIC_DEFINE
# define LIBSTATIC_EXPORT
# define LIBSTATIC_NO_EXPORT
#else
# ifndef LIBSTATIC_EXPORT
# ifdef libstatic_EXPORTS
/* We are building this library */
# define LIBSTATIC_EXPORT
# else
/* We are using this library */
# define LIBSTATIC_EXPORT
# endif
# endif
# ifndef LIBSTATIC_NO_EXPORT
# define LIBSTATIC_NO_EXPORT
# endif
#endif
#ifndef LIBSTATIC_DEPRECATED
# define LIBSTATIC_DEPRECATED __attribute__ ((__deprecated__))
#endif
#ifndef LIBSTATIC_DEPRECATED_EXPORT
# define LIBSTATIC_DEPRECATED_EXPORT LIBSTATIC_EXPORT LIBSTATIC_DEPRECATED
#endif
#ifndef LIBSTATIC_DEPRECATED_NO_EXPORT
# define LIBSTATIC_DEPRECATED_NO_EXPORT LIBSTATIC_NO_EXPORT LIBSTATIC_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSTATIC_NO_DEPRECATED
# define LIBSTATIC_NO_DEPRECATED
# endif
#endif
#endif

View File

@@ -1,42 +0,0 @@
#ifndef LIBSHARED_EXPORT_H
#define LIBSHARED_EXPORT_H
#ifdef LIBSHARED_STATIC_DEFINE
# define LIBSHARED_EXPORT
# define LIBSHARED_NO_EXPORT
#else
# ifndef LIBSHARED_EXPORT
# ifdef libshared_EXPORTS
/* We are building this library */
# define LIBSHARED_EXPORT __declspec(dllexport)
# else
/* We are using this library */
# define LIBSHARED_EXPORT __declspec(dllimport)
# endif
# endif
# ifndef LIBSHARED_NO_EXPORT
# define LIBSHARED_NO_EXPORT
# endif
#endif
#ifndef LIBSHARED_DEPRECATED
# define LIBSHARED_DEPRECATED __attribute__ ((__deprecated__))
#endif
#ifndef LIBSHARED_DEPRECATED_EXPORT
# define LIBSHARED_DEPRECATED_EXPORT LIBSHARED_EXPORT LIBSHARED_DEPRECATED
#endif
#ifndef LIBSHARED_DEPRECATED_NO_EXPORT
# define LIBSHARED_DEPRECATED_NO_EXPORT LIBSHARED_NO_EXPORT LIBSHARED_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSHARED_NO_DEPRECATED
# define LIBSHARED_NO_DEPRECATED
# endif
#endif
#endif

View File

@@ -1,42 +0,0 @@
#ifndef LIBSTATIC_EXPORT_H
#define LIBSTATIC_EXPORT_H
#ifdef LIBSTATIC_STATIC_DEFINE
# define LIBSTATIC_EXPORT
# define LIBSTATIC_NO_EXPORT
#else
# ifndef LIBSTATIC_EXPORT
# ifdef libstatic_EXPORTS
/* We are building this library */
# define LIBSTATIC_EXPORT
# else
/* We are using this library */
# define LIBSTATIC_EXPORT
# endif
# endif
# ifndef LIBSTATIC_NO_EXPORT
# define LIBSTATIC_NO_EXPORT
# endif
#endif
#ifndef LIBSTATIC_DEPRECATED
# define LIBSTATIC_DEPRECATED __attribute__ ((__deprecated__))
#endif
#ifndef LIBSTATIC_DEPRECATED_EXPORT
# define LIBSTATIC_DEPRECATED_EXPORT LIBSTATIC_EXPORT LIBSTATIC_DEPRECATED
#endif
#ifndef LIBSTATIC_DEPRECATED_NO_EXPORT
# define LIBSTATIC_DEPRECATED_NO_EXPORT LIBSTATIC_NO_EXPORT LIBSTATIC_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSTATIC_NO_DEPRECATED
# define LIBSTATIC_NO_DEPRECATED
# endif
#endif
#endif

View File

@@ -1,42 +0,0 @@
#ifndef LIBSHARED_EXPORT_H
#define LIBSHARED_EXPORT_H
#ifdef LIBSHARED_STATIC_DEFINE
# define LIBSHARED_EXPORT
# define LIBSHARED_NO_EXPORT
#else
# ifndef LIBSHARED_EXPORT
# ifdef libshared_EXPORTS
/* We are building this library */
# define LIBSHARED_EXPORT __declspec(dllexport)
# else
/* We are using this library */
# define LIBSHARED_EXPORT __declspec(dllimport)
# endif
# endif
# ifndef LIBSHARED_NO_EXPORT
# define LIBSHARED_NO_EXPORT
# endif
#endif
#ifndef LIBSHARED_DEPRECATED
# define LIBSHARED_DEPRECATED __declspec(deprecated)
#endif
#ifndef LIBSHARED_DEPRECATED_EXPORT
# define LIBSHARED_DEPRECATED_EXPORT LIBSHARED_EXPORT LIBSHARED_DEPRECATED
#endif
#ifndef LIBSHARED_DEPRECATED_NO_EXPORT
# define LIBSHARED_DEPRECATED_NO_EXPORT LIBSHARED_NO_EXPORT LIBSHARED_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSHARED_NO_DEPRECATED
# define LIBSHARED_NO_DEPRECATED
# endif
#endif
#endif

View File

@@ -1,42 +0,0 @@
#ifndef LIBSTATIC_EXPORT_H
#define LIBSTATIC_EXPORT_H
#ifdef LIBSTATIC_STATIC_DEFINE
# define LIBSTATIC_EXPORT
# define LIBSTATIC_NO_EXPORT
#else
# ifndef LIBSTATIC_EXPORT
# ifdef libstatic_EXPORTS
/* We are building this library */
# define LIBSTATIC_EXPORT
# else
/* We are using this library */
# define LIBSTATIC_EXPORT
# endif
# endif
# ifndef LIBSTATIC_NO_EXPORT
# define LIBSTATIC_NO_EXPORT
# endif
#endif
#ifndef LIBSTATIC_DEPRECATED
# define LIBSTATIC_DEPRECATED __declspec(deprecated)
#endif
#ifndef LIBSTATIC_DEPRECATED_EXPORT
# define LIBSTATIC_DEPRECATED_EXPORT LIBSTATIC_EXPORT LIBSTATIC_DEPRECATED
#endif
#ifndef LIBSTATIC_DEPRECATED_NO_EXPORT
# define LIBSTATIC_DEPRECATED_NO_EXPORT LIBSTATIC_NO_EXPORT LIBSTATIC_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSTATIC_NO_DEPRECATED
# define LIBSTATIC_NO_DEPRECATED
# endif
#endif
#endif

View File

@@ -1,42 +0,0 @@
#ifndef LIBSHARED_EXPORT_H
#define LIBSHARED_EXPORT_H
#ifdef LIBSHARED_STATIC_DEFINE
# define LIBSHARED_EXPORT
# define LIBSHARED_NO_EXPORT
#else
# ifndef LIBSHARED_EXPORT
# ifdef libshared_EXPORTS
/* We are building this library */
# define LIBSHARED_EXPORT __declspec(dllexport)
# else
/* We are using this library */
# define LIBSHARED_EXPORT __declspec(dllimport)
# endif
# endif
# ifndef LIBSHARED_NO_EXPORT
# define LIBSHARED_NO_EXPORT
# endif
#endif
#ifndef LIBSHARED_DEPRECATED
# define LIBSHARED_DEPRECATED
#endif
#ifndef LIBSHARED_DEPRECATED_EXPORT
# define LIBSHARED_DEPRECATED_EXPORT LIBSHARED_EXPORT LIBSHARED_DEPRECATED
#endif
#ifndef LIBSHARED_DEPRECATED_NO_EXPORT
# define LIBSHARED_DEPRECATED_NO_EXPORT LIBSHARED_NO_EXPORT LIBSHARED_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSHARED_NO_DEPRECATED
# define LIBSHARED_NO_DEPRECATED
# endif
#endif
#endif

View File

@@ -1,42 +0,0 @@
#ifndef LIBSTATIC_EXPORT_H
#define LIBSTATIC_EXPORT_H
#ifdef LIBSTATIC_STATIC_DEFINE
# define LIBSTATIC_EXPORT
# define LIBSTATIC_NO_EXPORT
#else
# ifndef LIBSTATIC_EXPORT
# ifdef libstatic_EXPORTS
/* We are building this library */
# define LIBSTATIC_EXPORT
# else
/* We are using this library */
# define LIBSTATIC_EXPORT
# endif
# endif
# ifndef LIBSTATIC_NO_EXPORT
# define LIBSTATIC_NO_EXPORT
# endif
#endif
#ifndef LIBSTATIC_DEPRECATED
# define LIBSTATIC_DEPRECATED
#endif
#ifndef LIBSTATIC_DEPRECATED_EXPORT
# define LIBSTATIC_DEPRECATED_EXPORT LIBSTATIC_EXPORT LIBSTATIC_DEPRECATED
#endif
#ifndef LIBSTATIC_DEPRECATED_NO_EXPORT
# define LIBSTATIC_DEPRECATED_NO_EXPORT LIBSTATIC_NO_EXPORT LIBSTATIC_DEPRECATED
#endif
#if 0 /* DEFINE_NO_DEPRECATED */
# ifndef LIBSTATIC_NO_DEPRECATED
# define LIBSTATIC_NO_DEPRECATED
# endif
#endif
#endif