https://github.com/opensourcedoc/objc-boilerplate-library
An Objective-C boilerplate project to build an Objective-C based library
https://github.com/opensourcedoc/objc-boilerplate-library
boilerplate boilerplate-library objective-c
Last synced: 9 months ago
JSON representation
An Objective-C boilerplate project to build an Objective-C based library
- Host: GitHub
- URL: https://github.com/opensourcedoc/objc-boilerplate-library
- Owner: opensourcedoc
- License: mit
- Created: 2020-10-26T03:12:14.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-12T05:21:06.000Z (about 5 years ago)
- Last Synced: 2025-02-24T10:35:45.730Z (over 1 year ago)
- Topics: boilerplate, boilerplate-library, objective-c
- Language: Makefile
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Objective-C Boilerplate for Library
An Objective-C boilerplate project to build an Objective-C based library.
## System Requirements
* Objective-C compiler (Clang or GCC)
* Cocoa or GNUstep
* GNU Make (for compilation only)
## Usage
Clone the project:
```
$ git clone https://github.com/cwchentw/objc-boilerplate-library.git mylib
```
Move your working directory to the root of *mylib*:
```
$ cd mylib
```
Modify the header and the source as needed. You may add and remove Objective-C source files (*.m*) or C source files (*.c*) as well.
Compile the project to a dynamic library:
```
$ make
```
Alternatively, compile the project to a static library:
```
$ make static
```
Set your own remote repository:
```
$ git remote set-url origin https://example.com/user/project.git
```
Push your modification to your own repo:
```
$ git push
```
## Project Configuration
Here are the parameters in *Makefile*:
* **LIBRARY**: the name of the compiled library, including *lib* the prefix
* **C_STD**: the C standard as a GCC C dialect
* **CXX_STD**: the C++ standard as a GCC C++ dialect
* **GNUSTEP_INCLUDE**: the include path of GNUstep
* **GNUSTEP_LIB**: the library path of GNUstep
## Note
C++ and Objective-C++ are supported as well.
## Copyright
Copyright (c) 2020-2021 Michelle Chen. Licensed under MIT.