Skip to content

Commit b7b1f11

Browse files
committed
fix all
all right
1 parent ef22a4c commit b7b1f11

File tree

7 files changed

+14
-7
lines changed

7 files changed

+14
-7
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ language: python
66
env:
77
global:
88
- CONAN_UPLOAD=1
9-
- CONAN_REFERENCE="estring/1.2"
9+
- CONAN_REFERENCE="estring/1.2.1"
1010
- CONAN_USERNAME="sunxfancy"
1111
- CONAN_CHANNEL="testing"
1212
- CONAN_TOTAL_PAGES=1

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,4 +38,4 @@ set_target_properties(${PROJECT_NAME} PROPERTIES VERSION ${VERSION_MAJOR}.${VERS
3838
endif()
3939

4040
add_subdirectory(doc)
41-
add_subdirectory(test)
41+
# add_subdirectory(test)

appveyor.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ environment:
55
PYTHON_ARCH: "32"
66

77
CONAN_UPLOAD: 1
8-
CONAN_REFERENCE: "estring/1.2"
8+
CONAN_REFERENCE: "estring/1.2.1"
99
CONAN_USERNAME: "sunxfancy"
1010
CONAN_CHANNEL: "testing"
1111
CONAN_TOTAL_PAGES: 4

conanfile.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
class EstringConan(ConanFile):
66
name = "estring"
7-
version = "1.2"
7+
version = "1.2.1"
88
license = "MIT"
99
url = "https://github.com/sunxfancy/estring"
1010
settings = "os", "compiler", "build_type", "arch"
1111
options = {"shared": [True, False]}
12-
requires = "libiconv/1.14@lasote/stable", "libcharsetdetect/1.0@sunxfancy/stable", "gtest/1.8.0@lasote/stable"
12+
requires = "libiconv/1.14@sunxfancy/stable", "libcharsetdetect/1.0@sunxfancy/stable", "gtest/1.8.0@lasote/stable"
1313
default_options = "shared=False", "gtest:shared=False"
1414
generators = "cmake"
1515
build_policy = "missing"
@@ -23,12 +23,14 @@ def build(self):
2323

2424
def imports(self):
2525
self.copy(pattern="*.dll", dst="bin", src="bin")
26+
self.copy(pattern="*.so*", dst="bin", src="lib")
2627
self.copy(pattern="*.dylib", dst="bin", src="lib")
2728

2829
def package(self):
2930
self.copy("*.h", dst="include", src="include")
3031
self.copy("*.a", dst="lib", src="lib", keep_path=False)
3132
self.copy("*.lib", dst="lib", src="lib", keep_path=False)
33+
self.copy("*.dll", dst="bin", src="bin", keep_path=False)
3234
self.copy("*.dll", dst="bin", src="lib", keep_path=False)
3335
self.copy("*.so*", dst="lib", src="lib", keep_path=False)
3436
self.copy("*.dylib", dst="lib", src="lib", keep_path=False)

src/estring.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77

88
#include "estring.h"
99
extern "C" {
10+
#define ICONV_CONST
1011
#include "iconv.h"
1112
#include "charsetdetect.h"
1213
}

test/CMakeLists.txt

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ find_package(GTest REQUIRED)
44
include_directories (${CMAKE_CURRENT_SOURCE_DIR})
55
include_directories (${GTEST_INCLUDE_DIRS})
66
file(GLOB_RECURSE test_source_files ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
7-
87
add_executable (all_test ${test_source_files})
98

109
target_link_libraries(all_test

test_package/conanfile.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
class HelloReuseConan(ConanFile):
99
settings = "os", "compiler", "build_type", "arch"
10-
requires = "estring/1.2@%s/%s" % (username, channel)
10+
requires = "estring/1.2.1@%s/%s" % (username, channel)
1111
generators = "cmake"
1212
build_policy = "missing"
1313

@@ -20,3 +20,8 @@ def build(self):
2020
def test(self):
2121
# equal to ./bin/greet, but portable win: .\bin\greet
2222
self.run(os.sep.join([".","bin", "libtest"]))
23+
24+
def imports(self):
25+
self.copy(pattern="*.dll", dst="bin", src="bin")
26+
self.copy(pattern="*.so*", dst="bin", src="lib")
27+
self.copy(pattern="*.dylib", dst="bin", src="lib")

0 commit comments

Comments
 (0)