Move all to deprecated folder.
This commit is contained in:
27
deprecated/firmware/buildroot/package/protobuf/Config.in
Normal file
27
deprecated/firmware/buildroot/package/protobuf/Config.in
Normal file
@@ -0,0 +1,27 @@
|
||||
# See src/google/protobuf/stubs/platform_macros.h for supported archs.
|
||||
# PowerPC doesn't actually work.
|
||||
# host-protobuf only builds on certain architectures
|
||||
config BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
|
||||
bool
|
||||
default y if BR2_arm
|
||||
default y if BR2_i386
|
||||
default y if BR2_mipsel
|
||||
default y if BR2_x86_64
|
||||
depends on BR2_HOSTARCH = "x86_64" || BR2_HOSTARCH = "x86"
|
||||
|
||||
config BR2_PACKAGE_PROTOBUF
|
||||
bool "protobuf"
|
||||
depends on BR2_INSTALL_LIBSTDCPP
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS
|
||||
depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
|
||||
depends on !BR2_STATIC_LIBS
|
||||
help
|
||||
Protocol buffers are Google's language-neutral, platform-neutral,
|
||||
extensible mechanism for serializing structured data.
|
||||
|
||||
https://developers.google.com/protocol-buffers
|
||||
|
||||
comment "protobuf needs a toolchain w/ C++, threads, dynamic library"
|
||||
depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS \
|
||||
|| BR2_STATIC_LIBS
|
||||
depends on BR2_PACKAGE_PROTOBUF_ARCH_SUPPORTS
|
||||
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 2667b7cda4a6bc8a09e5463adf3b5984e08d94e72338277affa8594d8b6e5cd1 protobuf-v2.6.1.tar.gz
|
||||
25
deprecated/firmware/buildroot/package/protobuf/protobuf.mk
Normal file
25
deprecated/firmware/buildroot/package/protobuf/protobuf.mk
Normal file
@@ -0,0 +1,25 @@
|
||||
################################################################################
|
||||
#
|
||||
# protobuf
|
||||
#
|
||||
################################################################################
|
||||
|
||||
PROTOBUF_VERSION = v2.6.1
|
||||
PROTOBUF_SITE = $(call github,google,protobuf,$(PROTOBUF_VERSION))
|
||||
PROTOBUF_LICENSE = BSD-3c
|
||||
PROTOBUF_LICENSE_FILES = LICENSE
|
||||
# no configure script
|
||||
PROTOBUF_AUTORECONF = YES
|
||||
|
||||
# N.B. Need to use host protoc during cross compilation.
|
||||
PROTOBUF_DEPENDENCIES = host-protobuf
|
||||
PROTOBUF_CONF_OPTS = --with-protoc=$(HOST_DIR)/usr/bin/protoc
|
||||
|
||||
PROTOBUF_INSTALL_STAGING = YES
|
||||
|
||||
ifeq ($(BR2_PACKAGE_ZLIB),y)
|
||||
PROTOBUF_DEPENDENCIES += zlib
|
||||
endif
|
||||
|
||||
$(eval $(autotools-package))
|
||||
$(eval $(host-autotools-package))
|
||||
Reference in New Issue
Block a user