Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

More detailed README, new mac xcconfig scheme

  • Loading branch information...
commit 2e085e899d9a4045317790d17c21c7ad8835bce6 1 parent d697485
@robotconscience robotconscience authored
View
1  .gitignore
@@ -46,7 +46,6 @@ obj/
#eclipse build folders
#Mac OS X
-xcuserdata
project.xcworkspace
.DS_Store
*.pyc
View
41 README.md
@@ -4,9 +4,44 @@ ofxLibwebsockets
* implements both client and server functionality of libwebsockets
* based on Paul Reimer's work on ofxWebUI (https://github.com/paulreimer/ofxWebUI) and jason vancleave's ofxLibWebSockets (https://github.com/jvcleave/ofxLibWebSockets)
-USAGE
+ADDING TO PROJECTS
------------
-* MAC USERS: before using the projectGenerator, delete ofxLibwebsockets/libs/libwebsockets/include/win32port Ya don't need it, ya knucklehead!
+* OS X
+ * Via OF Project Generator:
+ 1. Delete ofxLibwebsockets/libs/libwebsockets/include/win32port
+ 2. Add ofxLibwebsockets to your addons via the projectGenerator
+ 3. That's it!
+ * Adding to a new/existing project:
+ * Include ofxLibwebsockets' xcconfig file via your project's Project.xcconfig file:
+ 1. Define where it lives:
+ ```OFX_LWS_PATH = "$(OF_PATH)/addons/ofxLibwebsockets"```
+ 2. Include ofxLibwebsockets xcconfig
+ ```#include "../../../addons/ofxLibwebsockets/ofxLibwebsockets.xcconfig"```
+ 2. Add to existing vars in Project.xcconfig:
+ ```OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OFX_LWS_LIBS)
+ HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(OFX_LWS_INCLUDES)
+ LIBRARY_SEARCH_PATHS = $(inherited) $(OFX_LWS_SEARCH)```
+* Windows
+ * Adding to new/existing project:
+ 1. Add the ofxLibwebsockets source files to the C++ Linker
+ * right click on project in the solution explorer, click "Properties", Go down to C++ > General
+ * click the arrow at the right of "Additional include directories" and select "edit"
+ * add the ofxLibwebsockets source files:
+ ```..\..\..\addons\ofxLibwebsockets\libs\jsonpp
+ ..\..\..\addons\ofxLibwebsockets\libs\jsonpp\json
+ ..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include
+ ..\..\..\addons\ofxLibwebsockets\libs\libwebsockets\include\win32port
+ ..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\include
+ ..\..\..\addons\ofxLibwebsockets\libs\ofxLibwebsockets\src
+ ..\..\..\addons\ofxLibwebsockets\libs\openssl\openssl
+ ..\..\..\addons\ofxLibwebsockets\src```
+ 2. Add the ofxLibwebsockets paths to the "Additional Library Directories":
+ * right click on project in the solution explorer, click "Properties", Go down to Linker > General
+ * click the arrow at the right of "Additional Library Directories" and select "edit"
+ * add ```../../../addons/ofxLibwebsockets/libs/libwebsockets/libs/libwebsockets/lib/win32``` and ```../../../addons/ofxLibwebsockets/libs/libwebsockets/libs/openssl/lib/win32```
+ 3. Now go down to Linker > Input; open the editor "Additional dependencies" the same way
+ * In your debug scheme, add libwebsocketswin32d.lib, libeay32.lib, and ssleay32.lib
+ * In your release scheme, add libwebsocketswin32.lib, libeay32.lib, and ssleay32.lib
STATUS
------------
@@ -18,6 +53,4 @@ TO-DO
------------
* Add functionality to examples
* More fun examples
-* Try to add binary sending/receiving
-* More testing of JSON parsing with jsoncpp (seems to be working)
* Compile for linux
View
18 example-client-hello world/Project.xcconfig
@@ -5,14 +5,14 @@ OF_PATH = ../../..
//THIS HAS ALL THE HEADER AND LIBS FOR OF CORE
#include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig"
-LIB_SSL = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/lib/osx/libssl.a"
-LIB_CRYPTO = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/lib/osx/libcrypto.a"
-SSL_INC = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/"
-LWS = "$(OF_PATH)/addons/ofxLibwebsockets/libs/libwebsockets/lib/osx/libwebsockets.a"
-OFX_LWS_INCLUDE = "$(OF_PATH)/addons/ofxLibwebsockets/libs/ofxLibwebsockets/include"
+// INCLUDE OFX_LIBWEBSOCKETS
+// 1: DEFINE WHERE IT LIVES; only change this if you have installed elsewhere or changed the name!
+OFX_LWS_PATH = "$(OF_PATH)/addons/ofxLibwebsockets"
-LIBWEBSOCKETS_LIBS = $(LIB_CRYPTO) $(LIB_SSL) $(LWS)
-LIBWEBSOCKETS_INCLUDES= $(SSL_INC)
+// 2: INCLUDE OFX_LIBWEBSOCKETS XCCONFIG (make sure you change the path if you've installed elsewhere!)
+#include "../../../addons/ofxLibwebsockets/ofxLibwebsockets.xcconfig"
-OTHER_LDFLAGS = $(OF_CORE_LIBS) $(LIBWEBSOCKETS_LIBS)
-HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(SSL_INC) $(OFX_LWS_INCLUDE)
+// 3: ADD TO OR REPLACE EXISTING VARS
+
+OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OFX_LWS_LIBS)
+HEADER_SEARCH_PATHS = $(OF_CORE_HE
View
18 example-server-binary/Project.xcconfig
@@ -5,14 +5,14 @@ OF_PATH = ../../..
//THIS HAS ALL THE HEADER AND LIBS FOR OF CORE
#include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig"
-LIB_SSL = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/lib/osx/libssl.a"
-LIB_CRYPTO = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/lib/osx/libcrypto.a"
-SSL_INC = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/"
-LWS = "$(OF_PATH)/addons/ofxLibwebsockets/libs/libwebsockets/lib/osx/libwebsockets.a"
-OFX_LWS_INCLUDE = "$(OF_PATH)/addons/ofxLibwebsockets/libs/ofxLibwebsockets/include"
+// INCLUDE OFX_LIBWEBSOCKETS
+// 1: DEFINE WHERE IT LIVES; only change this if you have installed elsewhere or changed the name!
+OFX_LWS_PATH = "$(OF_PATH)/addons/ofxLibwebsockets"
-LIBWEBSOCKETS_LIBS = $(LIB_CRYPTO) $(LIB_SSL) $(LWS)
-LIBWEBSOCKETS_INCLUDES= $(SSL_INC)
+// 2: INCLUDE OFX_LIBWEBSOCKETS XCCONFIG (make sure you change the path if you've installed elsewhere!)
+#include "../../../addons/ofxLibwebsockets/ofxLibwebsockets.xcconfig"
-OTHER_LDFLAGS = $(OF_CORE_LIBS) $(LIBWEBSOCKETS_LIBS)
-HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(SSL_INC) $(OFX_LWS_INCLUDE)
+// 3: ADD TO OR REPLACE EXISTING VARS
+
+OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OFX_LWS_LIBS)
+HEADER_SEARCH_PATHS = $(OF_CORE_HE
View
18 example-server-binaryvideo/Project.xcconfig
@@ -5,14 +5,14 @@ OF_PATH = ../../..
//THIS HAS ALL THE HEADER AND LIBS FOR OF CORE
#include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig"
-LIB_SSL = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/lib/osx/libssl.a"
-LIB_CRYPTO = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/lib/osx/libcrypto.a"
-SSL_INC = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/"
-LWS = "$(OF_PATH)/addons/ofxLibwebsockets/libs/libwebsockets/lib/osx/libwebsockets.a"
-OFX_LWS_INCLUDE = "$(OF_PATH)/addons/ofxLibwebsockets/libs/ofxLibwebsockets/include"
+// INCLUDE OFX_LIBWEBSOCKETS
+// 1: DEFINE WHERE IT LIVES; only change this if you have installed elsewhere or changed the name!
+OFX_LWS_PATH = "$(OF_PATH)/addons/ofxLibwebsockets"
-LIBWEBSOCKETS_LIBS = $(LIB_CRYPTO) $(LIB_SSL) $(LWS)
-LIBWEBSOCKETS_INCLUDES= $(SSL_INC)
+// 2: INCLUDE OFX_LIBWEBSOCKETS XCCONFIG (make sure you change the path if you've installed elsewhere!)
+#include "../../../addons/ofxLibwebsockets/ofxLibwebsockets.xcconfig"
-OTHER_LDFLAGS = $(OF_CORE_LIBS) $(LIBWEBSOCKETS_LIBS)
-HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(SSL_INC) $(OFX_LWS_INCLUDE)
+// 3: ADD TO OR REPLACE EXISTING VARS
+
+OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OFX_LWS_LIBS)
+HEADER_SEARCH_PATHS = $(OF_CORE_HE
View
19 example-server-echo/Project.xcconfig
@@ -5,14 +5,15 @@ OF_PATH = ../../..
//THIS HAS ALL THE HEADER AND LIBS FOR OF CORE
#include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig"
-LIB_SSL = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/lib/osx/libssl.a"
-LIB_CRYPTO = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/lib/osx/libcrypto.a"
-SSL_INC = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/"
-LWS = "$(OF_PATH)/addons/ofxLibwebsockets/libs/libwebsockets/lib/osx/libwebsockets.a"
-OFX_LWS_INCLUDE = "$(OF_PATH)/addons/ofxLibwebsockets/libs/ofxLibwebsockets/include"
+// INCLUDE OFX_LIBWEBSOCKETS
+// 1: DEFINE WHERE IT LIVES; only change this if you have installed elsewhere or changed the name!
+OFX_LWS_PATH = "$(OF_PATH)/addons/ofxLibwebsockets"
-LIBWEBSOCKETS_LIBS = $(LIB_CRYPTO) $(LIB_SSL) $(LWS)
-LIBWEBSOCKETS_INCLUDES= $(SSL_INC)
+// 2: INCLUDE OFX_LIBWEBSOCKETS XCCONFIG
+#include "$(OFX_LWS_PATH)/ofxLibwebsockets.xcconfig"
-OTHER_LDFLAGS = $(OF_CORE_LIBS) $(LIBWEBSOCKETS_LIBS)
-HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(SSL_INC) $(OFX_LWS_INCLUDE)
+// 3: ADD TO OR REPLACE EXISTING VARS
+
+OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OFX_LWS_LIBS)
+HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(OFX_LWS_INCLUDES)
+LIBRARY_SEARCH_PATHS = $(inherited) $(OFX_LWS_SEARCH)
View
19 example-server-sharedCanvas/Project.xcconfig
@@ -5,14 +5,15 @@ OF_PATH = ../../..
//THIS HAS ALL THE HEADER AND LIBS FOR OF CORE
#include "../../../libs/openFrameworksCompiled/project/osx/CoreOF.xcconfig"
-LIB_SSL = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/lib/osx/libssl.a"
-LIB_CRYPTO = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/lib/osx/libcrypto.a"
-SSL_INC = "$(OF_PATH)/addons/ofxLibwebsockets/libs/openssl/"
-LWS = "$(OF_PATH)/addons/ofxLibwebsockets/libs/libwebsockets/lib/osx/libwebsockets.a"
-OFX_LWS_INCLUDE = "$(OF_PATH)/addons/ofxLibwebsockets/libs/ofxLibwebsockets/include"
+// INCLUDE OFX_LIBWEBSOCKETS
+// 1: DEFINE WHERE IT LIVES; only change this if you have installed elsewhere or changed the name!
+OFX_LWS_PATH = "$(OF_PATH)/addons/ofxLibwebsockets"
-LIBWEBSOCKETS_LIBS = $(LIB_CRYPTO) $(LIB_SSL) $(LWS)
-LIBWEBSOCKETS_INCLUDES= $(SSL_INC)
+// 2: INCLUDE OFX_LIBWEBSOCKETS XCCONFIG (make sure you change the path if you've installed elsewhere!)
+#include "../../../addons/ofxLibwebsockets/ofxLibwebsockets.xcconfig"
-OTHER_LDFLAGS = $(OF_CORE_LIBS) $(LIBWEBSOCKETS_LIBS)
-HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(SSL_INC) $(OFX_LWS_INCLUDE)
+// 3: ADD TO OR REPLACE EXISTING VARS
+
+OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OFX_LWS_LIBS)
+HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(OFX_LWS_INCLUDES)
+LIBRARY_SEARCH_PATHS = $(inherited) $(OFX_LWS_SEARCH)
View
192 example-server-sharedCanvas/SharedCanvas.xcodeproj/project.pbxproj
@@ -592,40 +592,13 @@
GCC_WARN_UNINITIALIZED_AUTOS = NO;
GCC_WARN_UNUSED_VALUE = NO;
GCC_WARN_UNUSED_VARIABLE = NO;
- HEADER_SEARCH_PATHS = (
- "$(OF_CORE_HEADERS)",
- src,
- ../../../addons/ofxLibwebsockets/libs,
- ../../../addons/ofxLibwebsockets/libs/jsoncpp,
- ../../../addons/ofxLibwebsockets/libs/jsoncpp/json,
- ../../../addons/ofxLibwebsockets/libs/libwebsockets,
- ../../../addons/ofxLibwebsockets/libs/libwebsockets/data,
- ../../../addons/ofxLibwebsockets/libs/libwebsockets/include,
- ../../../addons/ofxLibwebsockets/libs/libwebsockets/lib,
- ../../../addons/ofxLibwebsockets/libs/libwebsockets/lib/osx,
- ../../../addons/ofxLibwebsockets/libs/libwebsockets/lib/win32,
- ../../../addons/ofxLibwebsockets/libs/ofxLibwebsockets,
- ../../../addons/ofxLibwebsockets/libs/ofxLibwebsockets/include,
- ../../../addons/ofxLibwebsockets/libs/ofxLibwebsockets/include/ofxLibwebsockets,
- ../../../addons/ofxLibwebsockets/libs/ofxLibwebsockets/src,
- ../../../addons/ofxLibwebsockets/libs/openssl,
- ../../../addons/ofxLibwebsockets/libs/openssl/lib,
- ../../../addons/ofxLibwebsockets/libs/openssl/lib/osx,
- ../../../addons/ofxLibwebsockets/libs/openssl/lib/win32,
- ../../../addons/ofxLibwebsockets/libs/openssl/openssl,
- ../../../addons/ofxLibwebsockets/src,
- );
+ HEADER_SEARCH_PATHS = "$(HEADER_SEARCH_PATHS)";
OTHER_CPLUSPLUSFLAGS = (
"-D__MACOSX_CORE__",
"-lpthread",
"-mtune=native",
);
- OTHER_LDFLAGS = (
- "$(OF_CORE_LIBS)",
- ../../../addons/ofxLibwebsockets/libs/libwebsockets/lib/osx/libwebsockets.a,
- ../../../addons/ofxLibwebsockets/libs/openssl/lib/osx/libcrypto.a,
- ../../../addons/ofxLibwebsockets/libs/openssl/lib/osx/libssl.a,
- );
+ OTHER_LDFLAGS = "$(OTHER_LDFLAGS)";
};
name = Debug;
};
@@ -650,40 +623,13 @@
GCC_WARN_UNINITIALIZED_AUTOS = NO;
GCC_WARN_UNUSED_VALUE = NO;
GCC_WARN_UNUSED_VARIABLE = NO;
- HEADER_SEARCH_PATHS = (
- "$(OF_CORE_HEADERS)",
- src,
- ../../../addons/ofxLibwebsockets/libs,
- ../../../addons/ofxLibwebsockets/libs/jsoncpp,
- ../../../addons/ofxLibwebsockets/libs/jsoncpp/json,
- ../../../addons/ofxLibwebsockets/libs/libwebsockets,
- ../../../addons/ofxLibwebsockets/libs/libwebsockets/data,
- ../../../addons/ofxLibwebsockets/libs/libwebsockets/include,
- ../../../addons/ofxLibwebsockets/libs/libwebsockets/lib,
- ../../../addons/ofxLibwebsockets/libs/libwebsockets/lib/osx,
- ../../../addons/ofxLibwebsockets/libs/libwebsockets/lib/win32,
- ../../../addons/ofxLibwebsockets/libs/ofxLibwebsockets,
- ../../../addons/ofxLibwebsockets/libs/ofxLibwebsockets/include,
- ../../../addons/ofxLibwebsockets/libs/ofxLibwebsockets/include/ofxLibwebsockets,
- ../../../addons/ofxLibwebsockets/libs/ofxLibwebsockets/src,
- ../../../addons/ofxLibwebsockets/libs/openssl,
- ../../../addons/ofxLibwebsockets/libs/openssl/lib,
- ../../../addons/ofxLibwebsockets/libs/openssl/lib/osx,
- ../../../addons/ofxLibwebsockets/libs/openssl/lib/win32,
- ../../../addons/ofxLibwebsockets/libs/openssl/openssl,
- ../../../addons/ofxLibwebsockets/src,
- );
+ HEADER_SEARCH_PATHS = "$(HEADER_SEARCH_PATHS)";
OTHER_CPLUSPLUSFLAGS = (
"-D__MACOSX_CORE__",
"-lpthread",
"-mtune=native",
);
- OTHER_LDFLAGS = (
- "$(OF_CORE_LIBS)",
- ../../../addons/ofxLibwebsockets/libs/libwebsockets/lib/osx/libwebsockets.a,
- ../../../addons/ofxLibwebsockets/libs/openssl/lib/osx/libcrypto.a,
- ../../../addons/ofxLibwebsockets/libs/openssl/lib/osx/libssl.a,
- );
+ OTHER_LDFLAGS = "$(OTHER_LDFLAGS)";
};
name = Release;
};
@@ -704,70 +650,7 @@
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h";
INFOPLIST_FILE = "openFrameworks-Info.plist";
INSTALL_PATH = "$(HOME)/Applications";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_16)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_17)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_18)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_19)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_20)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_21)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_22)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_23)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_24)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_25)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_26)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_27)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_28)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_29)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_30)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_31)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_32)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_33)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_34)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_35)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_36)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_37)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_38)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_39)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_40)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_41)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_42)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_43)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_44)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_45)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_46)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_47)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_48)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_49)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_50)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_51)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_52)",
- );
+ LIBRARY_SEARCH_PATHS = "$(LIBRARY_SEARCH_PATHS)";
PREBINDING = NO;
PRODUCT_NAME = SharedCanvasDebug;
WRAPPER_EXTENSION = app;
@@ -790,70 +673,7 @@
GCC_PREFIX_HEADER = "$(SYSTEM_LIBRARY_DIR)/Frameworks/Carbon.framework/Headers/Carbon.h";
INFOPLIST_FILE = "openFrameworks-Info.plist";
INSTALL_PATH = "$(HOME)/Applications";
- LIBRARY_SEARCH_PATHS = (
- "$(inherited)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_1)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_4)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_5)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_6)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_14)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_15)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_2)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_1)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_3)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_7)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_8)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_9)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_10)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_11)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_12)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_13)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_16)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_17)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_18)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_19)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_20)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_21)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_22)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_23)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_24)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_25)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_26)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_27)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_28)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_29)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_30)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_31)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_32)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_33)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_34)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_35)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_36)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_37)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_38)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_39)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_40)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_41)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_42)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_43)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_44)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_45)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_46)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_47)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_48)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_49)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_50)",
- "$(LIBRARY_SEARCH_PATHS_QUOTED_FOR_TARGET_51)",
- );
+ LIBRARY_SEARCH_PATHS = "$(LIBRARY_SEARCH_PATHS)";
PREBINDING = NO;
PRODUCT_NAME = SharedCanvas;
WRAPPER_EXTENSION = app;
View
19 ofxLibwebsockets.xcconfig
@@ -0,0 +1,19 @@
+//Similar to CoreOF.xcconfig, you need to define OFX_LWS_PATH
+//like this:
+//OFX_LWS_PATH = "$(OF_PATH)/addons"
+
+LIB_SSL = "$(OFX_LWS_PATH)/libs/openssl/lib/osx/libssl.a"
+LIB_CRYPTO = "$(OFX_LWS_PATH)/libs/openssl/lib/osx/libcrypto.a"
+LIB_LIBWEBSOCKETS = "$(OFX_LWS_PATH)/libs/libwebsockets/lib/osx/libwebsockets.a"
+SSL_INC = "$(OFX_LWS_PATH)/libs/openssl/"
+LWS_INC = "$(OFX_LWS_PATH)/libs/libwebsockets/include"
+OFX_LWS_INC = "$(OFX_LWS_PATH)/libs/ofxLibwebsockets/include" "$(OFX_LWS_PATH)/libs/ofxLibwebsockets/src"
+
+OFX_LWS_LIBS = $(LIB_CRYPTO) $(LIB_SSL) $(LIB_LIBWEBSOCKETS)
+OFX_LWS_INCLUDES= $(SSL_INC) $(LWS_INC) $(OFX_LWS_INC)
+OFX_LWS_SEARCH = "$(OFX_LWS_PATH)/libs/libwebsockets/lib/osx" "$(OFX_LWS_PATH)/libs/libwebsockets/lib/osx"
+
+// replace or add to your existing Project.xcconfig:
+//OTHER_LDFLAGS = $(OF_CORE_LIBS) $(OFX_LWS_LIBS)
+//HEADER_SEARCH_PATHS = $(OF_CORE_HEADERS) $(OFX_LWS_INCLUDES)
+//LIBRARY_SEARCH_PATHS = $(inherited) $(OFX_LWS_SEARCH)
Please sign in to comment.
Something went wrong with that request. Please try again.