Created
November 13, 2012 19:25
-
-
Save anonymous/4067827 to your computer and use it in GitHub Desktop.
proxy.patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ru pure_example/CMakeLists.txt pure_example_proxy/CMakeLists.txt | |
--- pure_example/CMakeLists.txt 2012-11-13 06:19:25.745205402 +0400 | |
+++ pure_example_proxy/CMakeLists.txt 2012-11-13 23:20:10.091748942 +0400 | |
@@ -2,6 +2,8 @@ | |
add_library( v1 SHARED lib1.cpp ) | |
add_library( v2 SHARED lib2.cpp ) | |
+add_library( v2_proxy SHARED lib2_proxy.cpp ) | |
+target_link_libraries(v2_proxy v2) | |
add_executable( test lib1_doer.cpp lib2_doer.cpp main.cpp ) | |
-target_link_libraries(test v1 v2) | |
+target_link_libraries(test v1 v2_proxy) | |
Только в pure_example_proxy: .CMakeLists.txt.swp | |
diff -ru pure_example/lib2_doer.cpp pure_example_proxy/lib2_doer.cpp | |
--- pure_example/lib2_doer.cpp 2012-11-13 06:20:44.395266083 +0400 | |
+++ pure_example_proxy/lib2_doer.cpp 2012-11-13 23:12:32.860338059 +0400 | |
@@ -1,6 +1,6 @@ | |
-#include "lib2.h" | |
+#include "lib2_proxy.h" | |
#include "lib2_doer.h" | |
char* lib2_doer::doit() { | |
- return lib_ver(); | |
+ return lib2_ver_proxied(); | |
} | |
--- /dev/null 2012-11-02 22:02:19.084028447 +0400 | |
+++ pure_example_proxy/lib2_proxy.cpp 2012-11-13 23:13:39.896395017 +0400 | |
@@ -0,0 +1,6 @@ | |
+#include "lib2_proxy.h" | |
+#include "lib2.h" | |
+ | |
+char *lib2_ver_proxied() { | |
+ return lib_ver(); | |
+} | |
--- /dev/null 2012-11-02 22:02:19.084028447 +0400 | |
+++ pure_example_proxy/lib2_proxy.h 2012-11-13 23:08:59.627160697 +0400 | |
@@ -0,0 +1,6 @@ | |
+#ifndef LIB2_PROXY_H | |
+#define LIB2_PROXY_H | |
+ | |
+char *lib2_ver_proxied(); | |
+ | |
+#endif // LIB2_PROXY_H |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment