David Ayer is set to write and direct cop drama “End of Watch,” with Jake Gyllenhaal in early discussions to star.

Ayer and John Lesher will produce through Ayer’s Crave Films and Lesher’s Le Grisbi Prods.

Plot details are vague; pic’s being described as a gritty drama that follows the friendship between longtime partners. Ayer and Lesher are still putting the movie together and are out to financiers.

Ayer is no stranger to this genre, having already penned scripts for “Training Day,” “S.W.A.T.” and the Christian Bale vehicle “Harsh Times,” which Ayer wrote and directed. He most recently directed Keanu Reeves in “Street Kings.”

Gyllenhaal has been beefing up his action-hero status, starring in Disney’s “Prince of Persia: The Sands of Time” last summer. He has Summit’s sci-fi thriller “Source Code” coming this month.

As first reported by Variety, Gyllenhaal has been mentioned as a contender for the lead in “The Bourne Legacy,” the latest rendition of the Universal franchise (Daily Variety, Feb. 25).

Ayer is repped by CAA. Gyllenhaal is with CAA and Management 360.