blob: f2dd4e770182b00b83d51a0c66232b6ae25ac5e3 [file] [log] [blame]
#
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
ifeq "REL" "$(PLATFORM_VERSION_CODENAME)"
RS_VERSION := $(PLATFORM_SDK_VERSION)
else
# Increment by 1 whenever this is not a final release build, since we want to
# be able to see the RS version number change during development.
# See build/core/version_defaults.mk for more information about this.
RS_VERSION := "(1 + $(PLATFORM_SDK_VERSION))"
endif
RS_VERSION_DEFINE := -DRS_VERSION=$(RS_VERSION)
# Use RS_VERSION_DEFINE as part of your LOCAL_CFLAGS to have the proper value.
# LOCAL_CFLAGS += $(RS_VERSION_DEFINE)