{
    "targets": [
        {
            "target_name": "googlemock",
            "type": "static_library",
            "include_dirs": [
                "1.7.0/gmock-1.7.0/include",
                "1.7.0/gmock-1.7.0" # needed for gmock-all.cc
            ],
            "sources": [
                # here we cannot reference *.cc since the src dir contains
                # the funky gmock-all.cc which #includes everything. Of course
                # we can just reference this gmock-all.cc here:
                "1.7.0/gmock-1.7.0/src/gmock-all.cc"
            ],
            "dependencies": [
                "../googletest/googletest.gyp:googletest"
            ],
            "direct_dependent_settings": {
                "include_dirs": [
                    "1.7.0/gmock-1.7.0/include"
                    # 1.7.0/gmock-1.7.0[/src] is not in here on purpose
                ]
            },
            "export_dependent_settings": [
                # since gmock #includes refer to gtest #includes:
                "../googletest/googletest.gyp:googletest"
            ]
        },
        {
            "target_name": "googlemock_test",
            "type": "executable",
            "test": {},
            "sources": [ 
                # the 'all' test compiled several minutes, so instead lets
                # compile a smaller/faster test:
                #"1.7.0/gmock-1.7.0/test/gmock_all_test.cc"

                "1.7.0/gmock-1.7.0/test/gmock_test.cc"
            ],
            "dependencies": [
                "googlemock",
                "../googletest/googletest.gyp:*"
        	],
            # this disables building the example on iOS
            "conditions": [
                ["OS=='iOS'",
                    {
                        "type": "none"
                    }
                ]
            ]
        }  
    ]
}

{
    "targets": [
        {
            "target_name": "googlemock",
            "type": "static_library",
            "include_dirs": [
                "1.7.0/gmock-1.7.0/include",
                "1.7.0/gmock-1.7.0" # needed for gmock-all.cc
            ],
            "sources": [
                # here we cannot reference *.cc since the src dir contains
                # the funky gmock-all.cc which #includes everything. Of course
                # we can just reference this gmock-all.cc here:
                "1.7.0/gmock-1.7.0/src/gmock-all.cc"
            ],
            "dependencies": [
                "../googletest/googletest.gyp:googletest"
            ],
            "direct_dependent_settings": {
                "include_dirs": [
                    "1.7.0/gmock-1.7.0/include"
                    # 1.7.0/gmock-1.7.0[/src] is not in here on purpose
                ]
            },
            "export_dependent_settings": [
                # since gmock #includes refer to gtest #includes:
                "../googletest/googletest.gyp:googletest"
            ]
        },
        {
            "target_name": "googlemock_test",
            "type": "executable",
            "test": {},
            "sources": [ 
                # the 'all' test compiled several minutes, so instead lets
                # compile a smaller/faster test:
                #"1.7.0/gmock-1.7.0/test/gmock_all_test.cc"

                "1.7.0/gmock-1.7.0/test/gmock_test.cc"
            ],
            "dependencies": [
                "googlemock",
                "../googletest/googletest.gyp:*"
        	],
            # this disables building the example on iOS
            "conditions": [
                ["OS=='iOS'",
                    {
                        "type": "none"
                    }
                ]
            ]
        }  
    ]
}

# needed for gmock-all.cc # here we cannot reference *.cc since the src dir contains # the funky gmock-all.cc which #includes everything. Of course # we can just reference this gmock-all.cc here: # 1.7.0/gmock-1.7.0[/src] is not in here on purpose # since gmock #includes refer to gtest #includes: # the 'all' test compiled several minutes, so instead lets # compile a smaller/faster test: #"1.7.0/gmock-1.7.0/test/gmock_all_test.cc" # this disables building the example on iOS