Skip to content

Commit bc6e005

Browse files
authored
Merge pull request #4 from sunxfancy/dev
Dev
2 parents 7b4f258 + 73ca6fa commit bc6e005

File tree

5 files changed

+14
-15
lines changed

5 files changed

+14
-15
lines changed

.travis.yml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
env:
22
global:
3-
- CONAN_REFERENCE: "estring/1.2.2"
3+
- CONAN_REFERENCE: "estring/1.2.3"
44
- CONAN_USERNAME: "sunxfancy"
55
- CONAN_LOGIN_USERNAME: "sunxfancy"
66
- CONAN_CHANNEL: "ci"
@@ -35,12 +35,12 @@ matrix:
3535
- <<: *osx
3636
osx_image: xcode7.3
3737
env: CONAN_APPLE_CLANG_VERSIONS=7.3
38-
- <<: *osx
39-
osx_image: xcode8.1
40-
env: CONAN_APPLE_CLANG_VERSIONS=8.0
4138
- <<: *osx
4239
osx_image: xcode8.3
4340
env: CONAN_APPLE_CLANG_VERSIONS=8.1
41+
- <<: *osx
42+
osx_image: xcode9.2
43+
env: CONAN_APPLE_CLANG_VERSIONS=9.0
4444

4545
install:
4646
- chmod +x .travis/install.sh

CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ conan_basic_setup()
1010

1111
SET(VERSION_MAJOR "1")
1212
SET(VERSION_MINOR "2")
13-
SET(VERSION_PATCH "2")
13+
SET(VERSION_PATCH "3")
1414

1515
SET (CMAKE_BUILD_TYPE Debug) # 默认构建Debug模式
1616

appveyor.yml

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

8-
CONAN_REFERENCE: "estring/1.2.2"
8+
CONAN_REFERENCE: "estring/1.2.3"
99
CONAN_USERNAME: "sunxfancy"
1010
CONAN_LOGIN_USERNAME: "sunxfancy"
1111
CONAN_CHANNEL: "ci"

conanfile.py

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

55
class EstringConan(ConanFile):
66
name = "estring"
7-
version = "1.2.2"
7+
version = "1.2.3"
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.3@sunxfancy/stable", "libcharsetdetect/1.1.1@sunxfancy/stable", "gtest/1.8.0@lasote/stable"
12+
requires = "libiconv/1.14.4@sunxfancy/stable", "libcharsetdetect/1.1.2@sunxfancy/stable", "gtest/1.8.0@lasote/stable"
1313
default_options = "shared=False", "gtest:shared=False"
1414
generators = "cmake"
1515
build_policy = "missing"
@@ -18,8 +18,8 @@ class EstringConan(ConanFile):
1818
def build(self):
1919
cmake = CMake(self)
2020
shared = "-DBUILD_SHARED_LIBS=ON" if self.options.shared else ""
21-
self.run('cmake %s %s %s' % (self.conanfile_directory, cmake.command_line, shared))
22-
self.run("cmake --build . %s" % cmake.build_config)
21+
cmake.configure(shared)
22+
cmake.build()
2323

2424
def imports(self):
2525
self.copy(pattern="*.dll", dst="bin", src="bin")

test_package/conanfile.py

+4-5
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@
77

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

1414
def build(self):
1515
cmake = CMake(self)
16-
print('cmake "%s" %s' % (self.conanfile_directory, cmake.command_line))
17-
self.run('cmake "%s" %s' % (self.conanfile_directory, cmake.command_line))
18-
self.run("cmake --build . %s" % cmake.build_config)
19-
16+
cmake.configure()
17+
cmake.build()
18+
2019
def test(self):
2120
# equal to ./bin/greet, but portable win: .\bin\greet
2221
self.run(os.sep.join([".","bin", "libtest"]))

0 commit comments

Comments
 (0)