Explore Enterprise Education Gitee Premium Gitee AI AI teammates
Fetch the repository succeeded.
Open Source > Development Lib > Programming Language/Scripting Language &&
Donate
Please sign in before you donate.
Scan WeChat QR to Pay
Cancel
Complete
Prompt
Switch to Alipay.
OK
Cancel
13 Star 69 Fork 22

johnsonyl/cpps

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
Already have an account? Sign in
文件
master
Branches (1)
Tags (4)
master
v1.0.3-beta
v1.0.3
v1.0.2
v1.0.0
master
Branches (1)
Tags (4)
master
v1.0.3-beta
v1.0.3
v1.0.2
v1.0.0
Clone or Download
Clone/Download
Prompt
To download the code, please copy the following command and execute it in the terminal
To ensure that your submitted code identity is correctly recognized by Gitee, please execute the following command.
When using the SSH protocol for the first time to clone or push code, follow the prompts below to complete the SSH configuration.
1 Generate RSA keys.
2 Obtain the content of the RSA public key and configure it in SSH Public Keys
To use SVN on Gitee, please visit the usage guide
When using the HTTPS protocol, the command line will prompt for account and password verification as follows. For security reasons, Gitee recommends configure and use personal access tokens instead of login passwords for cloning, pushing, and other operations.
Username for 'https://gitee.com': userName
Password for 'https://userName@gitee.com': # Private Token
master
Branches (1)
Tags (4)
master
v1.0.3-beta
v1.0.3
v1.0.2
v1.0.0
cpps
/
buildlibs
cpps
/
buildlibs
buildlibs 9.77 KB
Copy Edit Raw Blame History
johnsonyl authored 2024年01月08日 14:43 +08:00 . 更新MAC编译问题
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293
// //
// Building cpps libs tool for Unix.v1.0.0 //
// //
// MIT License //
// //
// Copyright (c) 2020 johnsonyl //
// //
// Permission is hereby granted, free of charge, to any person obtaining a copy //
// of this software and associated documentation files (the "Software"), to deal //
// in the Software without restriction, including without limitation the rights //
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell //
// copies of the Software, and to permit persons to whom the Software is //
// furnished to do so, subject to the following conditions: //
// //
// The above copyright notice and this permission notice shall be included in all //
// copies or substantial portions of the Software. //
// //
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR //
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, //
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE //
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER //
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, //
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE //
// SOFTWARE. //
// //
// //
// ------------------------------------------------------------------------------ //
// BUILD CPPS LIBS //
// bugreport:88481106@qq.com //
// ------------------------------------------------------------------------------ //
var RED = 1;
var GREEN = 2;
var YELLOW = 3;
var BLUE = 4;
var PURPLE = 5;
var CYAN = 6;
//not support windows.
if(sys.os == "windows"){
println_color("Only Unix OS build libs, Windows Please Use Visual Studio Build.",RED);
exit(0);
}
var execute(var cmd)
{
return execmd(cmd);
}
var checkdepsfile(var filepath)
{
print("-- CHECK Deps for {filepath} - ");
var result = io.file_exists("deps/{filepath}")
if(result == false)
{
println_color("not found",RED);
println_color("deps/{filepath} not found.",RED);
exit(0);
}
else
println_color("found",GREEN);
}
var checkdepsdir(var filepath)
{
print("-- CHECK DepsDir for {filepath} - ");
var depsdir = "{io.getrealpath()}../deps/{filepath}";
depsdir = io.normpath(depsdir);
depsdir.replace("\\","/");
depsdir.pop_back();
var result = io.isdir(depsdir);
if(result == false)
{
println_color("not found",RED);
println_color("{io.getrealpath()}deps/{filepath} not found.",RED);
exit(0);
}
else
println_color("found",GREEN);
}
var uncompress(var dir,var filepath)
{
print("-- uncompress Deps for {filepath} - ");
var a = execute("tar -zxvf {dir}/{filepath}");
println_color("ok",GREEN);
}
print("-- CHECK for tar - ");
var result = execute("which tar");
if(result.find("/usr/bin/tar") == string.npos)
{
println_color("not found",RED);
println_color("You OS not install tar command. Please install tar command and try again.",RED);
exit(0);
}
else
println_color("found",GREEN);
if(sys.os == "macos"){
print("-- CHECK for mysql-connector-c - ");
var result = io.file_exists("/opt/homebrew/opt/mysql-client/include/mysql/mysql.h")
if(result == false)
{
println_color("not found",RED);
println_color("mysql-connector-c not found.",RED);
println_color("please use 'brew install mysql-connector-c'.",RED);
exit(0);
}
else
println_color("found",GREEN);
}
else if(sys.os == "linux")
{
print("-- CHECK for mysql-devel - ");
var result = io.file_exists("/usr/include/mysql/mysql.h")
if(result == false)
{
println_color("not found",RED);
println_color("mysql-devel not found.",RED);
println_color("install mysql-devel on linux use look like 'yum -y install mysql-devel' or 'apt-get install libmysqlclient-dev'",RED);
exit(0);
}
else
println_color("found",GREEN);
}
if(sys.os == "macos")
{
print("-- CHECK for curl - ");
var result = io.file_exists("/opt/homebrew/opt/curl/include/curl/curl.h")
if(result == false)
{
println_color("not found",RED);
println_color("curl not found. please use brew install curl",RED);
exit(0);
}
else
println_color("found",GREEN);
}
//CHECK curl-7.74.0.tar.gz
checkdepsfile("curl-7.74.0.tar.gz");
checkdepsfile("libuuid-1.0.3.tar.gz");
checkdepsfile("libuv-1.40.0.tar.gz");
checkdepsfile("mariadb-connector-c-3.1.11-src.tar.gz");
checkdepsfile("openssl-1.1.1h.tar.gz");
checkdepsfile("zlib-1.2.11.tar.gz");
checkdepsfile("hiredis-1.0.0.tar.gz");
checkdepsfile("re2-2020年11月01日.tar.gz");
checkdepsfile("libpng-1.6.40.tar.gz");
checkdepsfile("libffi-3.4.4.tar.gz");
var depspath = "{io.getrealpath()}../deps";
depspath = io.normpath(depspath);
depspath.replace("\\","/");
depspath.pop_back();
println("-- Entered the directory: {depspath}");
io.chdir(depspath);
uncompress(depspath,"curl-7.74.0.tar.gz");
uncompress(depspath,"libuuid-1.0.3.tar.gz");
uncompress(depspath,"libuv-1.40.0.tar.gz");
uncompress(depspath,"mariadb-connector-c-3.1.11-src.tar.gz");
uncompress(depspath,"openssl-1.1.1h.tar.gz");
uncompress(depspath,"zlib-1.2.11.tar.gz");
uncompress(depspath,"hiredis-1.0.0.tar.gz");
uncompress(depspath,"re2-2020年11月01日.tar.gz");
uncompress(depspath,"libpng-1.6.40.tar.gz");
uncompress(depspath,"libffi-3.4.4.tar.gz");
if(sys.os != "macos")
checkdepsdir("curl-7.74.0");
checkdepsdir("hiredis-1.0.0");
checkdepsdir("libuuid-1.0.3");
checkdepsdir("libuv-1.40.0");
checkdepsdir("mariadb-connector-c-3.1.11-src");
checkdepsdir("openssl-1.1.1h");
checkdepsdir("zlib-1.2.11");
checkdepsdir("libpng-1.6.40");
//build zlib-1.2.11
var buildname = "zlib-1.2.11";
var buildpath = "{depspath}/{buildname}";
println("-- Entered the directory: {buildpath}");
println("-- Building for : {buildname}");
io.chdir(buildpath);
system("sudo ./configure");
system("sudo make");
system("sudo make install");
//build openssl-1.1.1h
var buildname = "openssl-1.1.1h";
var buildpath = "{depspath}/{buildname}";
println("-- Entered the directory: {buildpath}");
println("-- Building for : {buildname}");
io.chdir(buildpath);
system("sudo ./config -fPIC shared zlib");
system("sudo make");
system("sudo make install");
//build curl-7.74.0
if(sys.os != "macos"){
var buildname = "curl-7.74.0";
var buildpath = "{depspath}/{buildname}";
println("-- Entered the directory: {buildpath}");
println("-- Building for : {buildname}");
io.chdir(buildpath);
system("sudo ./configure --enable-static --with-ssl --with-zlib --enable-ipv6");
system("sudo make");
system("sudo make install");
}
//build hiredis-1.0.0
var buildname = "hiredis-1.0.0";
var buildpath = "{depspath}/{buildname}";
println("-- Entered the directory: {buildpath}");
println("-- Building for : {buildname}");
io.chdir(buildpath);
system("sudo cmake .");
system("sudo make");
system("sudo make install");
//build libuuid-1.0.3
var buildname = "libuuid-1.0.3";
var buildpath = "{depspath}/{buildname}";
println("-- Entered the directory: {buildpath}");
println("-- Building for : {buildname}");
io.chdir(buildpath);
system("sudo ./configure");
system("sudo make");
system("sudo make install");
//build re2-2020年11月01日
var buildname = "re2-2020年11月01日";
var buildpath = "{depspath}/{buildname}";
println("-- Entered the directory: {buildpath}");
println("-- Building for : {buildname}");
io.chdir(buildpath);
system("sudo make");
system("sudo make install");
//build libuv-1.40.0
var buildname = "libuv-1.40.0";
var buildpath = "{depspath}/{buildname}";
println("-- Entered the directory: {buildpath}");
println("-- Building for : {buildname}");
io.chdir(buildpath);
system("sudo cmake .");
system("sudo make");
system("sudo make install");
//build mariadb-connector-c-3.1.11-src
var buildname = "mariadb-connector-c-3.1.11-src";
var buildpath = "{depspath}/{buildname}";
println("-- Entered the directory: {buildpath}");
println("-- Building for : {buildname}");
io.chdir(buildpath);
system("sudo cmake .");
system("sudo make");
system("sudo make install");
//build libpng-1.6.40
var buildname = "libpng-1.6.40";
var buildpath = "{depspath}/{buildname}";
println("-- Entered the directory: {buildpath}");
println("-- Building for : {buildname}");
io.chdir(buildpath);
system("sudo ./configure");
system("sudo make");
system("sudo make install");
println("-- Leaved the directory: {depspath}");
io.chdir(io.getrealpath());
println_color("-- Installed deps is successful.",CYAN);
var libspath = "{io.getrealpath()}../libs";
libspath = io.normpath(libspath);
libspath.replace("\\","/");
libspath.pop_back();
println("-- Entered the directory: {libspath}");
io.chdir(libspath);
system("sudo cmake .");
system("sudo make");
println("-- Leaved the directory: {libspath}");
io.chdir(io.getrealpath());
println_color("-- Build libs is successful.",CYAN);
Loading...
Report
Report success
We will send you the feedback within 2 working days through the letter!
Please fill in the reason for the report carefully. Provide as detailed a description as possible.
Please select a report type
Cancel
Send
误判申诉

此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。

如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。

取消
提交

About

CPPS是一种轻量级的嵌入式脚本语言,其语法类似于C++。它具有当前主流语言的许多特性,包括协程、面向对象、lambda、闭包、泛型变量、自定义模块支持、GC垃圾收集和跨平台。CPPS将程序解释为字节码,通过内置语法解析在虚拟机中运行
Cancel

Releases (3)

All

The Open Source Evaluation Index is derived from the OSS Compass evaluation system, which evaluates projects around the following three dimensions

1. Open source ecosystem

  • Productivity: To evaluate the ability of open-source projects to output software artifacts and open-source value.
  • Innovation: Used to evaluate the degree of diversity of open source software and its ecosystem.
  • Robustness: Used to evaluate the ability of open-source projects to resist internal and external interference and self recover in the face of changing development environments.

2. Collaboration, People, Software

  • Collaboration: represents the degree and depth of collaboration in open source development behavior.
  • Observe the influence of core personnel in open source projects, and examine the evaluations of users and developers on open source projects from a third-party perspective.
  • Software: Evaluate the value of products exported from open-source projects and their ultimate destination. It is also a concrete manifestation of "open source software", one of the oldest mainstream directions in open source evaluation.

3. Evaluation model

    Based on the dimensions of "open source ecosystem" and "collaboration, people, and software", identify quantifiable indicators directly or indirectly related to this goal, quantitatively evaluate the health and ecology of open source projects, and ultimately form an open source evaluation index.

Contributors

All

Activities

can not load any more
Edit
About
Homepage
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/cppscript/cpps.git
git@gitee.com:cppscript/cpps.git
cppscript
cpps
cpps
master
Going to Help Center

Search

Comment
Repository Report
Back to the top
Login prompt
This operation requires login to the code cloud account. Please log in before operating.
Go to login
No account. Register

AltStyle によって変換されたページ (->オリジナル) /