Skip to content

Commit

Permalink
Rename STATIC_LIB macro to ROCKET_STATIC_LIB.
Browse files Browse the repository at this point in the history
  • Loading branch information
hotgloupi committed Dec 17, 2014
1 parent b6f6631 commit a0dd198
Show file tree
Hide file tree
Showing 8 changed files with 39 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Build/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ if(BUILD_FRAMEWORK)
endif()

if(NOT BUILD_SHARED_LIBS)
add_definitions(-DSTATIC_LIB)
add_definitions(-DROCKET_STATIC_LIB)
endif()

#on windows, check for VC10 and fix the multiple compile target issue.
Expand Down
7 changes: 6 additions & 1 deletion Include/Rocket/Controls/Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@

#include "../Core/Platform.h"

#if !defined STATIC_LIB
#ifdef STATIC_LIB
#define ROCKET_STATIC_LIB
#warning "DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release"
#endif

#if !defined ROCKET_STATIC_LIB
#ifdef ROCKET_PLATFORM_WIN32
#ifdef RocketControls_EXPORTS
#define ROCKETCONTROLS_API __declspec(dllexport)
Expand Down
7 changes: 6 additions & 1 deletion Include/Rocket/Controls/Lua/Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@
#undef ROCKETLUA_API
#endif

#if !defined STATIC_LIB
#ifdef STATIC_LIB
#define ROCKET_STATIC_LIB
#warning "DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release"
#endif

#if !defined ROCKET_STATIC_LIB
#ifdef ROCKET_PLATFORM_WIN32
#if defined RocketCoreLua_EXPORTS
#define ROCKETLUA_API __declspec(dllexport)
Expand Down
7 changes: 6 additions & 1 deletion Include/Rocket/Core/Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,12 @@
// Note: Changing a ROCKETCORE_API_INLINE method
// breaks ABI compatibility!!

#if !defined STATIC_LIB
#ifdef STATIC_LIB
#define ROCKET_STATIC_LIB
#warning "DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release"
#endif

#if !defined ROCKET_STATIC_LIB
#if defined ROCKET_PLATFORM_WIN32
#if defined RocketCore_EXPORTS
#define ROCKETCORE_API __declspec(dllexport)
Expand Down
7 changes: 6 additions & 1 deletion Include/Rocket/Core/Lua/Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,12 @@
#undef ROCKETLUA_API
#endif

#if !defined STATIC_LIB
#ifdef STATIC_LIB
#define ROCKET_STATIC_LIB
#warning "DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release"
#endif

#if !defined ROCKET_STATIC_LIB
#ifdef ROCKET_PLATFORM_WIN32
#if defined RocketCoreLua_EXPORTS
#define ROCKETLUA_API __declspec(dllexport)
Expand Down
7 changes: 6 additions & 1 deletion Include/Rocket/Core/Python/Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@

#include "../Platform.h"

#if !defined STATIC_LIB
#ifdef STATIC_LIB
#define ROCKET_STATIC_LIB
#warning "DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release"
#endif

#if !defined ROCKET_STATIC_LIB
#if defined ROCKET_PLATFORM_WIN32
#if defined RocketCorePython_EXPORTS
#define ROCKETCOREPYTHON_API __declspec(dllexport)
Expand Down
7 changes: 6 additions & 1 deletion Include/Rocket/Debugger/Header.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@

#include "../Core/Platform.h"

#if !defined STATIC_LIB
#ifdef STATIC_LIB
#define ROCKET_STATIC_LIB
#warning "DEPRECATED: STATIC_LIB macro has been deprecated in favor of ROCKET_STATIC_LIB and support will be removed in a future release"
#endif

#if !defined ROCKET_STATIC_LIB
#ifdef ROCKET_PLATFORM_WIN32
#ifdef RocketDebugger_EXPORTS
#define ROCKETDEBUGGER_API __declspec(dllexport)
Expand Down
4 changes: 2 additions & 2 deletions how_to_build_for_mingw.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ Go into the Build folder and run cmake. However, notice:
** REPLACE C:\MinGW\bin\mingw32-make.exe with the path to your MinGW make.exe file.
** You have to have the C:\MinGW\bin in the path (or cmake will complain for missing libgmp-10.dll, etc).
** You must not have msys/bin in the path, it doesn't work with cmake
** Use -DSTATIC_LIB if static libs are wanted. However, you will also need -DSTATIC_LIB to your own application when including Rocket files.
** Notice that the generator "MinGW Makefiles" match the mingw32-make.exe, while the generator "msys Makefiles" match the msys/bin/make.exe. The first combination is used for
** Use -DROCKET_STATIC_LIB if static libs are wanted. However, you will also need -DROCKET_STATIC_LIB to your own application when including Rocket files.
** Notice that the generator "MinGW Makefiles" match the mingw32-make.exe, while the generator "msys Makefiles" match the msys/bin/make.exe. The first combination is used for

compiling from the DOS prompt, and the second one for compiling from a MinGW shell.

Expand Down

0 comments on commit a0dd198

Please sign in to comment.