[cmake]: add svn version script

CMakeLists.txt will generate version.h for mpp include

git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@7 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
ChenHengming
2015-07-28 10:50:48 +00:00
parent 6f8eb89bc6
commit bf2cb33dac
3 changed files with 95 additions and 1 deletions

24
build/cmake/version.h.in Normal file
View File

@@ -0,0 +1,24 @@
/*
* Copyright 2010 Rockchip Electronics S.LSI Co. LTD
*
* 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.
*/
#ifndef __VERSION_H__
#define __VERSION_H__
#define SVN_VERSION "@VERSION_REVISION@"
#define SVN_LAST_LOG "@VERSION_LAST_LOG@"
#endif /*__VERSION_H__*/