Code Monkey home page Code Monkey logo

happy-c's Introduction

happy-c

Happy-C,写C不再麻烦~

支持平台

  • Linux
  • Windows
  • Arm

Linux平台

依赖

CMake在构建时,依赖 checkvalgrind

CentOS: sudo yum install check valgrind

Arch Linux: sudo pacman -S check valgrind

安装

git clone https://github.com/fifilyu/happy-c.git
cd happy-c
mkdir build && cd build
cmake ..
make
make test
make install

默认安装到目录 /usr/local/happyc

安装后,目录结构:

-- Installing: /usr/local/happyc/include/happyc/date.h
-- Installing: /usr/local/happyc/include/happyc/filesys.h
-- Installing: /usr/local/happyc/include/happyc/log.h
-- Installing: /usr/local/happyc/include/happyc/base64.h
-- Installing: /usr/local/happyc/include/happyc/happyc.h
-- Installing: /usr/local/happyc/include/happyc/map.h
-- Installing: /usr/local/happyc/include/happyc/list.h
-- Installing: /usr/local/happyc/include/happyc/csv.h
-- Installing: /usr/local/happyc/include/happyc/config_compiler.h
-- Installing: /usr/local/happyc/include/happyc/config_platform.h
-- Installing: /usr/local/happyc/lib/libhappyc.so

Windows 平台

通过开始菜单或其它方式,用管理员权限打开Visual Studio的命令行环境,比如 x64_x86 Cross Tools Command Prompt for VS 2019。 然后,执行以下命令:

mkdir build && cd build
cmake ..
nmake
nmake install

默认安装到目录 C:/Program Files (x86)/happyc

安装后,目录结构:

-- Installing: C:/Program Files (x86)/happyc/include/happyc
-- Installing: C:/Program Files (x86)/happyc/include/happyc/base64.h
-- Installing: C:/Program Files (x86)/happyc/include/happyc/config_compiler.h
-- Installing: C:/Program Files (x86)/happyc/include/happyc/config_platform.h
-- Installing: C:/Program Files (x86)/happyc/include/happyc/csv.h
-- Installing: C:/Program Files (x86)/happyc/include/happyc/date.h
-- Installing: C:/Program Files (x86)/happyc/include/happyc/filesys.h
-- Installing: C:/Program Files (x86)/happyc/include/happyc/happyc.h
-- Installing: C:/Program Files (x86)/happyc/include/happyc/list.h
-- Installing: C:/Program Files (x86)/happyc/include/happyc/log.h
-- Installing: C:/Program Files (x86)/happyc/include/happyc/map.h
-- Installing: C:/Program Files (x86)/happyc/lib/happyc.lib

Arm 平台

直接复制.c和.h文件到MDK项目中即可。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.