Initial WebM release
[profile/ivi/libvpx.git] / solution.mk
1 ##
2 ##  Copyright (c) 2010 The VP8 project authors. All Rights Reserved.
3 ##
4 ##  Use of this source code is governed by a BSD-style license and patent
5 ##  grant that can be found in the LICENSE file in the root of the source
6 ##  tree. All contributing project authors may be found in the AUTHORS
7 ##  file in the root of the source tree.
8 ##
9
10
11 ifeq ($(ARCH_ARM),yes)
12 ARM_DEVELOP=no
13 ARM_DEVELOP:=$(if $(filter %vpx.vcproj,$(wildcard *.vcproj)),yes)
14
15 ifeq ($(ARM_DEVELOP),yes)
16 vpx.sln:
17         @echo "    [COPY] $@"
18         @cp $(SRC_PATH_BARE)/build/arm-wince-vs8/vpx.sln .
19 PROJECTS-yes += vpx.sln
20 else
21 vpx.sln: $(wildcard *.vcproj)
22         @echo "    [CREATE] $@"
23         $(SRC_PATH_BARE)/build/make/gen_msvs_sln.sh \
24             $(if $(filter %vpx.vcproj,$^),--dep=ivfdec:vpx) \
25             $(if $(filter %vpx.vcproj,$^),--dep=xma:vpx) \
26             --ver=$(CONFIG_VS_VERSION)\
27             --target=$(TOOLCHAIN)\
28             --out=$@ $^
29 vpx.sln.mk: vpx.sln
30         @true
31
32 PROJECTS-yes += vpx.sln vpx.sln.mk
33 -include vpx.sln.mk
34 endif
35
36 else
37 vpx.sln: $(wildcard *.vcproj)
38         @echo "    [CREATE] $@"
39         $(SRC_PATH_BARE)/build/make/gen_msvs_sln.sh \
40             $(if $(filter %vpx.vcproj,$^),\
41                 $(foreach vcp,$(filter-out %vpx.vcproj,$^),\
42                   --dep=$(vcp:.vcproj=):vpx)) \
43             --ver=$(CONFIG_VS_VERSION)\
44             --out=$@ $^
45 vpx.sln.mk: vpx.sln
46         @true
47
48 PROJECTS-yes += vpx.sln vpx.sln.mk
49 -include vpx.sln.mk
50 endif
51
52 # Always install this file, as it is an unconditional post-build rule.
53 INSTALL_MAPS += src/%     $(SRC_PATH_BARE)/%
54 INSTALL-SRCS-yes            += $(target).mk