Skip to content

Instantly share code, notes, and snippets.

@chutaicho
Last active December 19, 2015 21:58
Show Gist options
  • Save chutaicho/6023886 to your computer and use it in GitHub Desktop.
Save chutaicho/6023886 to your computer and use it in GitHub Desktop.
addon_config.mk for using "libcurl" as a OF-addon on the RPi
meta:
ADDON_NAME = libcurl
ADDON_DESCRIPTION = Addon for libcurl
ADDON_AUTHOR = OF Team
ADDON_TAGS = "libcurl"
ADDON_URL = ""
common:
# dependencies with other addons, a list of them separated by spaces
# or use += in several lines
ADDON_DEPENDENCIES =
# include search paths, this will be usually parsed from the file system
# but if the addon or addon libraries need special search paths they can be
# specified here separated by spaces or one per line using +=
ADDON_INCLUDES =
# any special flag that should be passed to the compiler when using this
# addon
ADDON_CFLAGS =
# any special flag that should be passed to the linker when using this
# addon, also used for system libraries with -lname
ADDON_LDFLAGS =
# linux only, any library that should be included in the project using
# pkg-config
ADDON_PKG_CONFIG_LIBRARIES =
# osx/iOS only, any framework that should be included in the project
ADDON_FRAMEWORKS =
# source files, these will be usually parsed from the file system looking
# in the src folders in libs and the root of the addon. if your addon needs
# to include files in different places or a different set of files per platform
# they can be specified here
ADDON_SOURCES =
# some addons need resources to be copied to the bin/data folder of the project
# specify here any files that need to be copied, you can use wildcards like * and ?
ADDON_DATA =
# when parsing the file system looking for libraries exclude this for all or
# a specific platform
ADDON_LIBS_EXCLUDE =
linux64:
# binary libraries, these will be usually parsed from the file system but some
# libraries need to passed to the linker in a specific order
ADDON_LIBS =
ADDON_LIBS += libs/libcurl.a
linux:
ADDON_LIBS =
ADDON_LIBS += libs/libcurl.a
linuxarmv6l:
#ADDON_LDFLAGS = -lcurl
ADDON_LIBS =
ADDON_LIBS += libs/libcurl.a
linuxarmv7l:
ADDON_LIBS =
ADDON_LIBS += libs/libcurl.a
@chutaicho
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment