Home | History | Annotate | Download | only in passion
      1 #!/bin/sh
      2 
      3 # Copyright (C) 2010 The Android Open Source Project
      4 #
      5 # Licensed under the Apache License, Version 2.0 (the "License");
      6 # you may not use this file except in compliance with the License.
      7 # You may obtain a copy of the License at
      8 #
      9 #      http://www.apache.org/licenses/LICENSE-2.0
     10 #
     11 # Unless required by applicable law or agreed to in writing, software
     12 # distributed under the License is distributed on an "AS IS" BASIS,
     13 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14 # See the License for the specific language governing permissions and
     15 # limitations under the License.
     16 
     17 DEVICE=passion
     18 MANUFACTURER=htc
     19 
     20 mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE
     21 
     22 (cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$DEVICE/$DEVICE-vendor.mk
     23 # Copyright (C) 2010 The Android Open Source Project
     24 #
     25 # Licensed under the Apache License, Version 2.0 (the "License");
     26 # you may not use this file except in compliance with the License.
     27 # You may obtain a copy of the License at
     28 #
     29 #      http://www.apache.org/licenses/LICENSE-2.0
     30 #
     31 # Unless required by applicable law or agreed to in writing, software
     32 # distributed under the License is distributed on an "AS IS" BASIS,
     33 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     34 # See the License for the specific language governing permissions and
     35 # limitations under the License.
     36 
     37 # This file is generated by device/__MANUFACTURER__/__DEVICE__/setup-makefiles.sh
     38 
     39 # Live wallpaper packages
     40 PRODUCT_PACKAGES := \\
     41     LiveWallpapers \\
     42     LiveWallpapersPicker \\
     43     MagicSmokeWallpapers \\
     44     VisualizationWallpapers \\
     45     librs_jni
     46 
     47 # Publish that we support the live wallpaper feature.
     48 PRODUCT_COPY_FILES := \\
     49     packages/wallpapers/LivePicker/android.software.live_wallpaper.xml:/system/etc/permissions/android.software.live_wallpaper.xml
     50 
     51 # Pick up overlay for features that depend on non-open-source files
     52 DEVICE_PACKAGE_OVERLAYS := vendor/__MANUFACTURER__/__DEVICE__/overlay
     53 
     54 \$(call inherit-product, vendor/__MANUFACTURER__/__DEVICE__/device-vendor-blobs.mk)
     55 EOF
     56 
     57 (cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$DEVICE/BoardConfigVendor.mk
     58 # Copyright (C) 2010 The Android Open Source Project
     59 #
     60 # Licensed under the Apache License, Version 2.0 (the "License");
     61 # you may not use this file except in compliance with the License.
     62 # You may obtain a copy of the License at
     63 #
     64 #      http://www.apache.org/licenses/LICENSE-2.0
     65 #
     66 # Unless required by applicable law or agreed to in writing, software
     67 # distributed under the License is distributed on an "AS IS" BASIS,
     68 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     69 # See the License for the specific language governing permissions and
     70 # limitations under the License.
     71 
     72 # This file is generated by device/__MANUFACTURER__/__DEVICE__/setup-makefiles.sh
     73 
     74 BOARD_GPS_LIBRARIES := libgps
     75 
     76 USE_CAMERA_STUB := false
     77 EOF
     78 
     79 mkdir -p ../../../vendor/$MANUFACTURER/$DEVICE/overlay/packages/apps/Launcher2/res/layout
     80 (cat << EOF) | sed s/__DEVICE__/$DEVICE/g | sed s/__MANUFACTURER__/$MANUFACTURER/g > ../../../vendor/$MANUFACTURER/$DEVICE/overlay/packages/apps/Launcher2/res/layout/all_apps.xml
     81 <?xml version="1.0" encoding="utf-8"?>
     82 <!-- Copyright (C) 2010 The Android Open Source Project
     83 
     84      Licensed under the Apache License, Version 2.0 (the "License");
     85      you may not use this file except in compliance with the License.
     86      You may obtain a copy of the License at
     87 
     88           http://www.apache.org/licenses/LICENSE-2.0
     89 
     90      Unless required by applicable law or agreed to in writing, software
     91      distributed under the License is distributed on an "AS IS" BASIS,
     92      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     93      See the License for the specific language governing permissions and
     94      limitations under the License.
     95 -->
     96 
     97 <!-- This file is generated by device/__MANUFACTURER__/__DEVICE__/setup-makefiles.sh -->
     98 
     99 <!-- switch to all_apps_3d on devices that support RenderScript -->
    100 <merge xmlns:android="http://schemas.android.com/apk/res/android">
    101     <include layout="@layout/all_apps_3d" />
    102 </merge>
    103 EOF
    104